[gnome-nibbles] Validate appdata and desktop file at make check



commit 5a0b86d326862d08df4cd35a11f6c9a31c04692c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Oct 6 09:20:44 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 a7b8048..1ae6d11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,9 @@ PKG_CHECK_MODULES(GNOME_NIBBLES, [
   clutter-gtk-1.0 >= $CLUTTER_GTK_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 7b67d28..33a4133 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -40,4 +40,8 @@ install-exec-hook:
          chgrp $(scores_group) $(DESTDIR)$(bindir)/gnome-nibbles && chmod 2555 
$(DESTDIR)$(bindir)/gnome-nibbles ;\
        fi
 
+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]