summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
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