summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index adb970f..e6fb158 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1 +1,15 @@
EXTRA_DIST = icon.ico icon.svg
+
+# Build a .desktop entry
+BUILT_SOURCES = $(PACKAGE_NAME).desktop
+CLEANFILES = $(PACKAGE_NAME).desktop
+$(PACKAGE_NAME).desktop: Makefile
+ echo "[Desktop Entry]" > $@
+ echo "Type=Application" >> $@
+ echo "Name=$(PACKAGE_NAME)" >> $@
+ echo "Comment=Terminal Media Launcher" >> $@
+ echo "Path=$(bindir)/$(PACKAGE_NAME)$(EXEEXT)" >> $@
+ echo "Exec=$(PACKAGE_NAME)$(EXEEXT)" >> $@
+ echo "Icon=$(PACKAGE_NAME)" >> $@
+ echo "Terminal=true" >> $@
+ echo "Categories=Utility" >> $@