Windows-Installer mit GTK-Abhängigkeiten
[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 dist_man_MANS = sm.6
32 EXTRA_DIST = sm.py sm.desktop.in sm.html
33 CLEANFILES = sm.desktop 
34
35 if WIN32
36 INSTALLER_BASE = screen-message-setup-@PACKAGE_VERSION@
37 INSTALLER = $(INSTALLER_BASE).exe
38 CLEANFILES +=  setup.iss $(INSTALLER)
39
40 $(INSTALLER): setup.iss sm.exe 
41         "$(WINE)" "$(ISCC)" /O. "/F$(INSTALLER_BASE)" $< 
42
43 installer: $(INSTALLER)
44
45 endif