summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-03-02 21:36:07 -0800
committerLouie S <louie@example.com>2023-03-02 21:36:07 -0800
commit02f7ca01c62c34b775643ca1872338af06b5a9ba (patch)
tree0cc98f70ead4210e411645fa0f50c7c612457283 /data/Makefile.am
parente64d5d0c347c7c7155f414d8c2a7c766523ded9b (diff)
configure flag to enable/disable desktop entry installation
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 20c7465..dafdf2a 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,6 +1,8 @@
EXTRA_DIST = terminal-media-launcher.ico terminal-media-launcher.svg
# Build a .desktop entry
+if DESKTOP_ENTRY
+
BUILT_SOURCES = $(PACKAGE_NAME).desktop
CLEANFILES = $(PACKAGE_NAME).desktop
$(PACKAGE_NAME).desktop: Makefile
@@ -13,3 +15,10 @@ $(PACKAGE_NAME).desktop: Makefile
echo "Icon=$(PACKAGE_NAME)" >> $@
echo "Terminal=true" >> $@
echo "Categories=Utility" >> $@
+
+desktopdir = $(datadir)/applications
+icondir = $(datadir)/pixmaps
+desktop_DATA = $(PACKAGE_NAME).desktop
+icon_DATA = $(PACKAGE_NAME).svg
+
+endif