releasing version 0.18-1
[darcs-mirror-screen-message.debian.git] / Makefile.am
index 8fc9148..0007de6 100644 (file)
@@ -6,8 +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
+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
 
@@ -23,5 +29,6 @@ update-icon-cache:
        fi
 
 
-man_MANS = sm.6
-EXTRA_DIST = sm.6 sm.py sm.png
+dist_man_MANS = sm.6
+EXTRA_DIST = sm.py sm.desktop.in
+CLEANFILES = sm.desktop