VALID = examples/*.xml NONVALID = failing/*.xml SCHEMA = ../radio-manifest.xsd all: test test: $(VALID) $(NONVALID) examples/%.xml: $(SCHEMA) xmllint --schema $(SCHEMA) --noout $@ failing/%.xml: $(SCHEMA) if xmllint --schema $(SCHEMA) --noout $@ 2> /dev/null; then false; else true; fi .PHONY: all test