[gnome-sudoku] Improve checks for appdata-validate and desktop-file-validate
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Improve checks for appdata-validate and desktop-file-validate
- Date: Fri, 1 Nov 2013 13:22:34 +0000 (UTC)
commit 167f26e86420734069a042d5764b578387e906a6
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Nov 1 08:22:10 2013 -0500
Improve checks for appdata-validate and desktop-file-validate
configure.ac | 3 +++
data/Makefile.am | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 56d7ab3..fe519e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,10 @@ PKG_CHECK_MODULES(PYGOBJECT, [
])
AC_PATH_PROG(APPDATA_VALIDATE, appdata-validate)
+AM_CONDITIONAL([VALIDATE_APPDATA], [test -n "${APPDATA_VALIDATE}"])
+
AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
+AM_CONDITIONAL([VALIDATE_DESKTOP_FILE], [test -n "${DESKTOP_FILE_VALIDATE}"])
dnl ###########################################################################
dnl Internationalization
diff --git a/data/Makefile.am b/data/Makefile.am
index cd07f06..bd0a2cf 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -45,7 +45,11 @@ CLEANFILES = \
$(desktop_DATA)
check-local: $(appdata_DATA) $(desktop_DATA)
+if VALIDATE_APPDATA
$(APPDATA_VALIDATE) $(appdata_DATA)
+endif
+if VALIDATE_DESKTOP_FILE
$(DESKTOP_FILE_VALIDATE) $(desktop_DATA)
+endif
-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]