aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-15 07:58:06 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-15 08:30:07 +0100
commitb67aa2b41247991e361dec0963670b4e5108410a (patch)
tree67591b0f4cc6e767d0097c1afc3f08ad40ee19ea /Makefile
parent8d17fb5bc4b0dae0758e01a44d77d87acf2e686a (diff)
downloadee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.gz
ee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.bz2
ee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.xz
ee-python-b67aa2b41247991e361dec0963670b4e5108410a.zip
o Merging XSD files into one.
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)