Fixed Makefile target to build data structures

A change in kiwi/schema/kiwi.rnc triggers the build of the
schema rng version as well as an auto update of the data
structures via python's generateDS. The intermediate xsd
schema format is only relevant for the data structure
creation process
This commit is contained in:
Marcus Schäfer 2016-01-12 10:38:53 +01:00
parent 8b056f9928
commit ed7be57e6e
No known key found for this signature in database
GPG Key ID: AD11DD02B44996EF

View File

@ -30,17 +30,14 @@ list_tests:
%.py:
nosetests $@
kiwi/xml_parse.py: kiwi/schema/kiwi.xsd
# XML parser code is auto generated from schema using generateDS
# http://pythonhosted.org/generateDS
generateDS.py --external-encoding='utf-8' \
-o kiwi/xml_parse.py kiwi/schema/kiwi.xsd
kiwi/schema/kiwi.xsd: kiwi/schema/kiwi.rnc
trang -I rnc -O xsd kiwi/schema/kiwi.rnc kiwi/schema/kiwi.xsd
kiwi/schema/kiwi.rng: kiwi/schema/kiwi.rnc
trang -I rnc -O rng kiwi/schema/kiwi.rnc kiwi/schema/kiwi.rng
trang -I rnc -O xsd kiwi/schema/kiwi.rnc kiwi/schema/kiwi.xsd
# XML parser code is auto generated from schema using generateDS
# http://pythonhosted.org/generateDS
generateDS.py -f --external-encoding='utf-8' \
-o kiwi/xml_parse.py kiwi/schema/kiwi.xsd
rm kiwi/schema/kiwi.xsd
tools_bin:
mkdir -p tools_bin