From b67aa2b41247991e361dec0963670b4e5108410a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 15 Mar 2019 07:58:06 +0100 Subject: o Merging XSD files into one. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c648bca..4321b5f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -XSDS = xsd/ee-bom.xsd xsd/ee-index.xsd -XSD_PYS = src/ee/xml/bomFile.py src/ee/xml/indexFile.py +XSD_PYS = +XSD_PYS += src/ee/xml/types.py all: env/pip.cookie $(XSD_PYS) @@ -14,7 +14,7 @@ env/pip.cookie: requirements.txt env/bin/pip src/ee/xml/__init__.py: touch $@ -src/ee/xml/%File.py: xsd/ee-%.xsd +define xsd-to-py env/bin/generateDS.py \ -f \ --no-dates \ @@ -22,5 +22,8 @@ src/ee/xml/%File.py: xsd/ee-%.xsd --output-directory=src/ee/xml \ -o $@ \ -m $< +endef $(XSDS): env/pip.cookie src/ee/xml/__init__.py +src/ee/xml/types.py: xsd/ee.xsd + $(xsd-to-py) -- cgit v1.2.3