Makefile.am (usbview-2.0) | : | Makefile.am (usbview-2.1) | ||
---|---|---|---|---|
## Process this file with automake to produce Makefile.in | ## Process this file with automake to produce Makefile.in | |||
INCLUDES = \ | AM_CPPFLAGS = $(GTK_CFLAGS) | |||
$(GTK_CFLAGS) \ | usbview_LDADD = $(GTK_LIBS) | |||
$(GLIB_CFLAGS) \ | ||||
@CPPFLAGS@ | ||||
VERSION = 2.0 | ||||
bin_PROGRAMS = usbview | bin_PROGRAMS = usbview | |||
man_MANS = usbview.8 | man_MANS = usbview.8 | |||
usbview_SOURCES = \ | usbview_SOURCES = \ | |||
main.c \ | main.c \ | |||
interface.c \ | interface.c \ | |||
callbacks.c \ | callbacks.c \ | |||
usbtree.c usbtree.h \ | usbtree.c usbtree.h \ | |||
usbparse.c usbparse.h \ | usbparse.c usbparse.h \ | |||
configure-dialog.c \ | configure-dialog.c \ | |||
usbview_logo.xpm \ | usbview_logo.xpm | |||
usbview_logo.xcf \ | ||||
usb_icon.xpm \ | interface.o: $(icon_bitmaps_xpm) | |||
usbview.spec | ||||
usbview_LDADD = \ | ||||
$(GTK_LIBS) \ | ||||
$(GLIB_LIBS) | ||||
EXTRA_DIST = $(man_MANS) | EXTRA_DIST = $(man_MANS) usbview_icon.svg usbview.desktop \ | |||
usbview_logo.xcf \ | ||||
org.freedesktop.pkexec.usbview.policy \ | ||||
LICENSES/GPL-2.0-only.txt | ||||
desktopdir = $(datadir)/applications | ||||
if DESKTOP | ||||
desktop_DATA = usbview.desktop | ||||
endif | ||||
polkitactiondir = $(datadir)/polkit-1/actions | ||||
if POLKIT | ||||
polkitaction_DATA = org.freedesktop.pkexec.usbview.policy | ||||
endif | ||||
icondir = $(datadir)/icons | ||||
icon_bitmaps_png = \ | ||||
hicolor/16x16/apps/usbview.png \ | ||||
hicolor/22x22/apps/usbview.png \ | ||||
hicolor/32x32/apps/usbview.png \ | ||||
hicolor/48x48/apps/usbview.png \ | ||||
hicolor/64x64/apps/usbview.png \ | ||||
hicolor/256x256/apps/usbview.png | ||||
icon_bitmaps_xpm = hicolor/64x64/apps/usbview_icon.xpm | ||||
if ICONS | ||||
nobase_icon_DATA = $(icon_scalable) $(icon_bitmaps_png) | ||||
endif | ||||
$(icon_bitmaps_png): usbview_icon.svg | ||||
mkdir -p $$(dirname $@) | ||||
if HAVE_CONVERT | ||||
$(CONVERT) -geometry $$(basename $$(dirname $$(dirname $@))) $< $@ | ||||
else | ||||
echo "error: unable to generate $@ from $<" | ||||
exit 1 | ||||
endif | ||||
$(icon_bitmaps_xpm): usbview_icon.svg | ||||
mkdir -p $$(dirname $@) | ||||
if HAVE_CONVERT | ||||
$(CONVERT) -geometry $$(basename $$(dirname $$(dirname $@))) $< $@ | ||||
else | ||||
echo "error: unable to generate $@ from $<" | ||||
exit 1 | ||||
endif | ||||
icon_scalable = hicolor/scalable/apps/usbview.svg | ||||
$(icon_scalable): usbview_icon.svg | ||||
mkdir -p $$(dirname $@) | ||||
cp $< $@ | ||||
CLEANFILES = $(icon_scalable) $(icon_bitmaps_png) $(icon_bitmaps_xpm) | ||||
# gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor; | ||||
gtk-update-icon-cache -f -t $(datadir)/icons/HighContrast | ||||
# | ||||
# install-data-hook: update-icon-cache | ||||
# uninstall-hook: update-icon-cache | ||||
# update-icon-cache: | ||||
# @-if test -z "$(DESTDIR)"; then \ | ||||
# echo "Updating Gtk icon cache."; \ | ||||
# $(gtk_update_icon_cache); \ | ||||
# else \ | ||||
# echo "*** Icon cache not updated. After (un)install, run this:"; | ||||
\ | ||||
# echo "*** $(gtk_update_icon_cache)"; \ | ||||
# fi | ||||
End of changes. 3 change blocks. | ||||
14 lines changed or deleted | 5 lines changed or added |