aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
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)