3 sm_CFLAGS = $(DEPS_CFLAGS)
4 sm_LDADD = $(DEPS_LIBS)
6 execgamesdir= $(prefix)/games
9 sm.desktop: sm.desktop.in
10 sed -e s%@BINPATH@%${execgamesdir}% <$< >$@
12 desktopdir = $(datadir)/applications
13 desktop_DATA = sm.desktop
15 icondir = $(datadir)/icons/hicolor/48x48/apps
16 dist_icon_DATA = sm.png
18 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
20 install-data-hook: update-icon-cache
21 uninstall-hook: update-icon-cache
23 @-if test -z "$(DESTDIR)"; then \
24 echo "Updating Gtk icon cache."; \
25 $(gtk_update_icon_cache); \
27 echo "*** Icon cache not updated. After (un)install, run this:"; \
28 echo "*** $(gtk_update_icon_cache)"; \
32 EXTRA_DIST = sm.py sm.desktop.in sm.html README.Win32
33 CLEANFILES = sm.desktop
36 AM_LDFLAGS = -Wl,--subsystem,windows
38 INSTALLER_BASE = screen-message-setup-@PACKAGE_VERSION@
39 INSTALLER = $(INSTALLER_BASE).exe
40 CLEANFILES += setup.iss $(INSTALLER)
42 $(INSTALLER): setup.iss sm.exe README.Win32
43 "$(WINE)" "$(ISCC)" /O. "/F$(INSTALLER_BASE)" $<
45 installer: $(INSTALLER)