2
SUBDIRS = 16 22 24 32 48 64 128 256 nsis
5
dist_man_MANS = gsmartcontrol.1
8
cd $(DESTDIR)$(mandir)/man1 && $(LN_S) -f gsmartcontrol.1 gsmartcontrol-root.1
11
cd $(DESTDIR)$(mandir)/man1 && rm -f gsmartcontrol-root.1
14
# This command is needed if installing with make install (the cache
15
# file is ignored for rpms).
16
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
18
install-data-hook: install-extra-mans update-icon-cache
19
uninstall-hook: uninstall-extra-mans update-icon-cache
22
@-if test -z "$(DESTDIR)"; then \
23
echo "Updating GTK icon cache."; \
24
$(gtk_update_icon_cache); \
26
echo "*** Icon cache not updated. After (un)install, run this:"; \
27
echo "*** $(gtk_update_icon_cache)"; \
31
# Application data, installs to /usr/share/appname
32
appdatadir = $(pkgdatadir)
33
appdata_DATA = icon_cddvd.png icon_hdd.png
36
# pkgdatadir = $(datadir)/gsmartcontrol
40
desktopdir = $(datadir)/applications
41
desktop_DATA = gsmartcontrol.desktop
44
# Application pixmap (fallback icon for desktop files).
45
# Same as 48/gsmartcontrol.png.
46
# Also, xpm for debian menu, 32x32.
47
pixmapsdir = $(datadir)/pixmaps
48
pixmaps_DATA = 48/gsmartcontrol.png gsmartcontrol.xpm
51
# Put everything inside the distribution
52
EXTRA_DIST = $(appdata_DATA) gsmartcontrol.ico gsmartcontrol.xpm
55
bin_SCRIPTS = gsmartcontrol-root
56
CLEANFILES = $(bin_SCRIPTS)