[quadrapassel] Validate appdata and desktop file at make check



commit 1ce78139e8826be1f167f1be75cd1b81a4e45a32
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Oct 6 09:38:55 2013 -0500

    Validate appdata and desktop file at make check

 configure.ac     |    3 +++
 data/Makefile.am |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 459c0e5..792656d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,9 @@ PKG_CHECK_MODULES(QUADRAPASSEL, [
   clutter-gtk-1.0 >= $CLUTTER_REQUIRED
 ])
 
+AC_PATH_PROG(APPDATA_VALIDATE, appdata-validate)
+AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
+
 dnl ###########################################################################
 dnl Internationalization
 dnl ###########################################################################
diff --git a/data/Makefile.am b/data/Makefile.am
index 90e5cfd..90cdc2c 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -36,4 +36,8 @@ EXTRA_DIST = \
 CLEANFILES = $(desktop_DATA) $(gsettings_SCHEMAS)
 DISTCLEANFILES = $(desktop_DATA) $(gsettings_SCHEMAS)
 
+check-local: $(appdata_DATA) $(desktop_DATA)
+       $(APPDATA_VALIDATE) $(appdata_DATA)
+       $(DESKTOP_FILE_VALIDATE) $(desktop_DATA)
+
 -include $(top_srcdir)/git.mk


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