Monotone-Parent: e57eef2a82bd3537f98500a9eb2ad3d89658813b

Monotone-Revision: 0cbd4a9c5bf491a238af8827cc1200efcd8577d6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-03T18:38:12
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-03 18:38:12 +00:00
parent 8c4878a7fc
commit 2a274be95e

View File

@@ -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