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