[lightsoff] Validate appdata and desktop file at make check
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff] Validate appdata and desktop file at make check
- Date: Sat, 5 Oct 2013 19:58:59 +0000 (UTC)
commit 65a407560a9597d0a1f94c81815eecd1f8c27427
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Oct 5 14:41:49 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 12e94e3..f03199f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,9 @@ PKG_CHECK_MODULES(LIGHTSOFF, [
AC_CHECK_LIB([m],[floor])
+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 2725815..cda40a8 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -31,4 +31,8 @@ EXTRA_DIST = \
$(gsettings_in_file) \
$(desktop_in_file)
+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]