[network-manager-vpnc/th/vpn-editor-split-bgo766170: 18/19] build: don't install appdata when building --without-gnome



commit 64ca5a10d1514339875f0d0f2bf610883841357d
Author: Thomas Haller <thaller redhat com>
Date:   Mon May 9 14:22:27 2016 +0200

    build: don't install appdata when building --without-gnome

 Makefile.am |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6285613..6dfa8c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,7 +28,10 @@ uninstall-hook:
 endif
 
 appdatadir = $(datadir)/appdata
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_files = $(appdata_in_files:.xml.in=.xml)
+if WITH_GNOME
+appdata_DATA = $(appdata_files)
+endif
 appdata_in_files = appdata/network-manager-vpnc.metainfo.xml.in
 @INTLTOOL_XML_RULE@
 
@@ -44,13 +47,13 @@ DISTCHECK_CONFIGURE_FLAGS = \
 EXTRA_DIST = nm-vpnc-service.name.in \
              $(dbusservice_DATA)  \
              $(appdata_in_files)  \
-             $(appdata_DATA)      \
+             $(appdata_files)     \
              intltool-extract.in  \
              intltool-merge.in    \
              intltool-update.in
 
 CLEANFILES = $(nmvpnservice_DATA) \
-             $(appdata_DATA)
+             $(appdata_files)
 
 DISTCLEANFILES = intltool-extract intltool-merge intltool-update
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]