aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: c648bcab9efe717fc95255a2829d20d76fd68424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
XSDS = xsd/ee-bom.xsd xsd/ee-index.xsd
XSD_PYS = src/ee/xml/bomFile.py src/ee/xml/indexFile.py

all: env/pip.cookie $(XSD_PYS)

env/bin/pip:
	virtualenv -p python3 env

env/pip.cookie: requirements.txt env/bin/pip
	env/bin/pip install -r requirements.txt
	env/bin/pip install -e .
	@touch env/pip.cookie

src/ee/xml/__init__.py:
	touch $@

src/ee/xml/%File.py: xsd/ee-%.xsd
	env/bin/generateDS.py \
	    -f \
	    --no-dates \
	    --no-versions \
	    --output-directory=src/ee/xml \
	    -o $@ \
	    -m $<

$(XSDS): env/pip.cookie src/ee/xml/__init__.py