root := ../../..

include $(root)/build/cxx/rules.make

xsd_cxx_suffix := -parser-templates
include $(root)/build/xsd/parser-rules.make

override XSDFLAGS += --namespace-map =parser_templates


# Build.
#
driver: driver.o

schema-parser-templates.hxx \
schema-parser-templates.txx: schema.xsd

driver.o: driver.cxx schema-parser-templates.hxx schema-parser-templates.txx

# Test.
#
.PHONY: test
test: driver instance.xml
	./driver instance.xml


# Clean.
#
.PHONY: clean
clean:
	rm -f schema-parser-templates.?xx driver.o driver

