From 2a274be95e022b366b9141a0bc053f542b9d81ec Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 3 May 2007 18:38:12 +0000 Subject: [PATCH] Monotone-Parent: e57eef2a82bd3537f98500a9eb2ad3d89658813b Monotone-Revision: 0cbd4a9c5bf491a238af8827cc1200efcd8577d6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-03T18:38:12 Monotone-Branch: ca.inverse.sogo --- UI/Templates/GNUmakefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/UI/Templates/GNUmakefile b/UI/Templates/GNUmakefile index 3cd151e02..6d739703c 100644 --- a/UI/Templates/GNUmakefile +++ b/UI/Templates/GNUmakefile @@ -1,14 +1,20 @@ # GNUstep makefile -XMLLINT = $(shell which xmllint) -ifeq ($(XMLLINT),) - XMLLINT = /bin/true +XMLLINT = xmllint +XMLLINT-BIN = $(shell which $(XMLLINT)) +ifeq ($(XMLLINT-BIN),) +all :: + @echo Utility \"$(XMLLINT)\" not found. Skipping validation. +else +all :: validate-wox endif -validate-wox: - $(XMLLINT) --noout *.wox +WOXS = $(shell find . -name '*.wox' -type f) -all :: validate-wox +validate-wox: + for wox in $(WOXS); \ + do $(XMLLINT-BIN) --noout $$wox || exit 1; \ + done; install :: all