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:
parent
8b056f9928
commit
ed7be57e6e
15
Makefile
15
Makefile
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user