TAG 0.18-1
[darcs-mirror-screen-message.debian.git] / Makefile.am
1
2 sm_SOURCES = sm.c
3 sm_CFLAGS = $(DEPS_CFLAGS)
4 sm_LDADD = $(DEPS_LIBS)
5
6 execgamesdir= $(prefix)/games
7 execgames_PROGRAMS=sm
8
9 sm.desktop: sm.desktop.in
10         sed -e s%@BINPATH@%${execgamesdir}% <$< >$@
11
12 desktopdir = $(datadir)/applications
13 desktop_DATA = sm.desktop
14
15 icondir = $(datadir)/icons/hicolor/48x48/apps
16 dist_icon_DATA = sm.png
17
18 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
19
20 install-data-hook: update-icon-cache
21 uninstall-hook: update-icon-cache
22 update-icon-cache:
23         @-if test -z "$(DESTDIR)"; then \
24                 echo "Updating Gtk icon cache."; \
25                 $(gtk_update_icon_cache); \
26         else \
27                 echo "*** Icon cache not updated.  After (un)install, run this:"; \
28                 echo "***   $(gtk_update_icon_cache)"; \
29         fi
30
31
32 dist_man_MANS = sm.6
33 EXTRA_DIST = sm.py sm.desktop.in
34 CLEANFILES = sm.desktop