build: Avoid installing uncessary files with features disabled

This commit is contained in:
Patrick Griffis 2016-08-27 22:42:36 -04:00
parent dc09f2c75d
commit 7281da8b2c
2 changed files with 23 additions and 5 deletions

View File

@ -1,7 +1,15 @@
SUBDIRS = pkgconfig man SUBDIRS =
if DO_PLUGIN
SUBDIRS += pkgconfig
endif
if DO_GTK if DO_GTK
SUBDIRS += icons misc SUBDIRS += icons misc man
else
if WITH_TM
SUBDIRS += misc
endif
endif endif
EXTRA_DIST = \ EXTRA_DIST = \

View File

@ -1,6 +1,12 @@
appdata_in_files = hexchat.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdatadir = $(datadir)/appdata 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@ @INTLTOOL_XML_RULE@
if USE_DBUS if USE_DBUS
@ -13,7 +19,11 @@ hexchat.desktop.in: hexchat.desktop.in.in
$(AM_V_GEN)sed -e s!\@exec_command\@!$(exec_command)! < $< > $@ $(AM_V_GEN)sed -e s!\@exec_command\@!$(exec_command)! < $< > $@
data_desktopdir = $(datadir)/applications 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 if WITH_TM
data_desktop_in_files += htm.desktop.in data_desktop_in_files += htm.desktop.in