summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-02-26 22:13:31 -0800
committerLouie S <louie@example.com>2023-02-26 22:13:31 -0800
commitbf0172b7e6391aa1345a0e8add0b622d08e0053b (patch)
tree8e0e7fad8723ec032d8a262a970a148df9c2e7a9 /data/Makefile.am
parentde3f9b304c73721c877cdfacae1f006618c91d52 (diff)
Added rule for generating desktop entry
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" >> $@