X-Git-Url: http://git.nomeata.de/?p=darcs-mirror-screen-message.debian.git;a=blobdiff_plain;f=Makefile.am;h=387cc8aa17e5670c4fc8f2d4b733b6d28b2b8f96;hp=9eb60dbeb8906493cb79212ced1f852bd108ea02;hb=1f382d6a9d9e85dec91a85fc825d7755f167ffe8;hpb=0516c7b7d47910a62b942f71a74fe44e944efb94 diff --git a/Makefile.am b/Makefile.am index 9eb60db..387cc8a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,11 +6,14 @@ sm_LDADD = $(DEPS_LIBS) execgamesdir= $(prefix)/games execgames_PROGRAMS=sm +sm.desktop: sm.desktop.in + sed -e s%@BINPATH@%${execgamesdir}% <$< >$@ + desktopdir = $(datadir)/applications -dist_desktop_DATA = sm.desktop +desktop_DATA = sm.desktop icondir = $(datadir)/icons/hicolor/48x48/apps -icon_DATA = sm.png +dist_icon_DATA = sm.png gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor @@ -25,6 +28,26 @@ update-icon-cache: echo "*** $(gtk_update_icon_cache)"; \ fi +dist_man_MANS = sm.6 +# some of these files are just added to make the Debian packaging based on the +# same VCS painless... (otherwise dpkg would try to add these files as patches) +EXTRA_DIST = sm.py sm.desktop.in sm.html sm.webapp webapp.html README.Win32 sm.ico sm.rc sm-128.png sm.svg gtkzoom.h gtkzoom.c sm-fsmi-ka.jpg +CLEANFILES = sm.desktop + +if WIN32 +AM_LDFLAGS = -Wl,--subsystem,windows +sm_LDADD += sm-icon.o + +INSTALLER_BASE = screen-message-setup-@PACKAGE_VERSION@ +INSTALLER = $(INSTALLER_BASE).exe +CLEANFILES += setup.iss $(INSTALLER) + +sm-icon.o: sm.rc + $(WINDRES) $< $@ + +$(INSTALLER): setup.iss sm.exe README.Win32 + "$(WINE)" "$(ISCC)" /O. "/F$(INSTALLER_BASE)" $< + +installer: $(INSTALLER) -man_MANS = sm.6 -EXTRA_DIST = sm.6 sm.py sm.png +endif