[hitori] build: Update AppData build rules to enable validation



commit 474af988b330cd9b19eaaa6c6ccfbbfc6f73d88c
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 20 22:52:44 2013 +0000

    build: Update AppData build rules to enable validation
    
    The AppData file’s validity will now be checked during `make check`.

 Makefile.am  |    8 ++++----
 configure.ac |    3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index c03ce39..0e9b507 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -89,14 +89,14 @@ EXTRA_DIST += \
 CLEANFILES = $(desktop_DATA)
 
 # AppData
+ APPDATA_XML_RULES@
 @INTLTOOL_XML_RULE@
 
-appdatadir = $(datadir)/appdata
 appdata_in_files = data/hitori.appdata.xml.in
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_XML = $(appdata_in_files:.appdata.xml.in=.appdata.xml)
 
 EXTRA_DIST += $(appdata_in_files)
-CLEANFILES += $(appdata_DATA)
+CLEANFILES += $(appdata_XML)
 
 # Gubbins
 EXTRA_DIST += \
@@ -154,7 +154,7 @@ MAINTAINERCLEANFILES = \
 
 GITIGNOREFILES = src/.dirstamp
 
-DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
+DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper --enable-appdata-validate
 
 # Copy all the spec files. Of course, only one is actually used.
 dist-hook:
diff --git a/configure.ac b/configure.ac
index 11b76c6..0a18dbf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,9 @@ IT_PROG_INTLTOOL([0.35.0])
 # Documentation
 YELP_HELP_INIT
 
+# AppData
+APPDATA_XML
+
 # Dependencies
 PKG_CHECK_MODULES([GENERAL],[glib-2.0 gtk+-3.0 gmodule-2.0 cairo >= 1.4])
 


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