protocol: hook up xmllint to check validity

This commit is contained in:
Peter Hutterer
2013-10-23 14:57:02 +10:00
committed by Kristian Høgsberg
parent c85f1d4595
commit 64db37e53c
2 changed files with 27 additions and 1 deletions
+16 -1
View File
@@ -1,4 +1,4 @@
EXTRA_DIST = \
protocol_sources = \
desktop-shell.xml \
screenshooter.xml \
tablet-shell.xml \
@@ -9,3 +9,18 @@ EXTRA_DIST = \
subsurface.xml \
text-cursor-position.xml \
wayland-test.xml
if HAVE_XMLLINT
.PHONY: validate
.%.xml.valid: %.xml
$(AM_V_GEN)$(XMLLINT) --noout --dtdvalid $(dtddir)/wayland.dtd $^ > $@
validate: $(protocol_sources:%.xml=.%.xml.valid)
all-local: validate
CLEANFILES= $(protocol_sources:%.xml=.%.xml.valid)
EXTRA_DIST=$(protocol_sources)
endif