Commit c3105da2 authored by Yanko Kaneti's avatar Yanko Kaneti Committed by Debarshi Ray

Validate desktop files at check-local

This should catch breakages caused by translations.
parent 6879f53d
...@@ -118,6 +118,12 @@ LIBGD_INIT([ ...@@ -118,6 +118,12 @@ LIBGD_INIT([
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0` GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES) AC_SUBST(GLIB_COMPILE_RESOURCES)
AC_ARG_VAR([DESKTOP_FILE_VALIDATE], [the desktop-file-validate program])
AC_PATH_PROG([DESKTOP_FILE_VALIDATE], [desktop-file-validate], [])
if test -z "$DESKTOP_FILE_VALIDATE"; then
AC_MSG_ERROR([desktop-file-validate not found])
fi
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
data/Makefile data/Makefile
......
...@@ -36,4 +36,13 @@ DISTCLEANFILES = \ ...@@ -36,4 +36,13 @@ DISTCLEANFILES = \
$(desktop_in_files) \ $(desktop_in_files) \
$(NULL) $(NULL)
desktop-file-validate: $(desktop_DATA)
for f in $^; do \
$(DESKTOP_FILE_VALIDATE) $$f; \
done
check-local: desktop-file-validate
.PHONY: desktop-file-validate
-include $(top_srcdir)/git.mk -include $(top_srcdir)/git.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment