summary refs log tree commit diff stats
path: root/data/misc
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-08-27 22:42:36 -0400
committerPatrick Griffis <tingping@tingping.se>2016-08-27 22:43:07 -0400
commit7281da8b2c37b58d69378cc852a2aa5173c82f47 (patch)
treec25fca3db2d89d315c7a541eec404f806aaef1b8 /data/misc
parentdc09f2c75dba14e40fbdd69d3bbd850010d80451 (diff)
build: Avoid installing uncessary files with features disabled
Diffstat (limited to 'data/misc')
-rw-r--r--data/misc/Makefile.am16
1 files changed, 13 insertions, 3 deletions
diff --git a/data/misc/Makefile.am b/data/misc/Makefile.am
index e40c4ba9..45036a3c 100644
--- a/data/misc/Makefile.am
+++ b/data/misc/Makefile.am
@@ -1,6 +1,12 @@
-appdata_in_files = hexchat.appdata.xml.in
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
 appdatadir = $(datadir)/appdata
+appdata_in_files =
+
+if DO_GTK
+appdata_in_files += hexchat.appdata.xml.in
+endif
+
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
 @INTLTOOL_XML_RULE@
 
 if USE_DBUS
@@ -13,7 +19,11 @@ hexchat.desktop.in: hexchat.desktop.in.in
 	$(AM_V_GEN)sed -e s!\@exec_command\@!$(exec_command)! < $< > $@
 
 data_desktopdir = $(datadir)/applications
-data_desktop_in_files = hexchat.desktop.in
+data_desktop_in_files =
+
+if DO_GTK
+data_desktop_in_files += hexchat.desktop.in
+endif
 
 if WITH_TM
 data_desktop_in_files += htm.desktop.in