Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 1 | # Replace the line below with the location of xosgen |
2 | PREFIX=. | ||||
3 | XOSGEN=$(PREFIX)/tool/xosgen | ||||
4 | |||||
5 | DJANGO_TARGET=$(PREFIX)/targets/service.xtarget | ||||
6 | XPROTOS_TMP := $(shell mktemp) | ||||
7 | |||||
8 | xprotos = $(wildcard *.xproto) | ||||
9 | |||||
10 | all: models.py | ||||
11 | |||||
12 | models.py: $(xprotos) | ||||
13 | $(XOSGEN) --attic attic --target $(DJANGO_TARGET) --output $@ $< | ||||
14 | |||||
15 | .PHONY: all | ||||
16 | |||||
17 | clean: | ||||
18 | rm -f models.py |