call update-icon-cache (please test yourself)
[darcs-mirror-screen-message.git] / Makefile.am
1
2 bin_PROGRAMS = sm
3 sm_SOURCES = sm.c
4 sm_CFLAGS = $(DEPS_CFLAGS)
5 sm_LDADD = $(DEPS_LIBS)
6
7 icondir = $(datadir)/icons/hicolor/48x48/apps
8 icon_DATA = sm.png
9
10 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
11
12 install-data-hook: update-icon-cache
13 uninstall-hook: update-icon-cache
14 update-icon-cache:
15         @-if test -z "$(DESTDIR)"; then \
16                 echo "Updating Gtk icon cache."; \
17                 $(gtk_update_icon_cache); \
18         else \
19                 echo "*** Icon cache not updated.  After (un)install, run this:"; \
20                 echo "***   $(gtk_update_icon_cache)"; \
21         fi
22
23
24 man_MANS = sm.1
25 EXTRA_DIST = sm.1 sm.py sm.png