[ghex] build: Validate desktop file on make check
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] build: Validate desktop file on make check
- Date: Thu, 28 Mar 2013 19:45:45 +0000 (UTC)
commit 1bd04ab8445c9d9bca25b643ec4b3768cc47499e
Author: Kalev Lember <kalevlember gmail com>
Date: Thu Mar 28 20:43:07 2013 +0100
build: Validate desktop file on make check
configure.ac | 1 +
data/Makefile.am | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 762c021..591cfc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,7 @@ AM_SILENT_RULES([yes])
# Check for programs
AC_PROG_CC
AC_PROG_INSTALL
+AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
# Initialize libtool
LT_PREREQ([2.2.6])
diff --git a/data/Makefile.am b/data/Makefile.am
index b78e33b..ef71b74 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -18,6 +18,9 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
+check-local: ghex.desktop
+ $(DESKTOP_FILE_VALIDATE) ghex.desktop
+
CLEANFILES = \
$(desktop_DATA)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]