blob: ffbc783c23e2a9b02185d4a92c5d3086ec3716d2 [file] [log] [blame]
Sapan Bhatia504cc972017-04-27 01:56:28 +02001# Replace the line below with the location of xosgen
2PREFIX=.
3XOSGEN=$(PREFIX)/tool/xosgen
4
5DJANGO_TARGET=$(PREFIX)/targets/service.xtarget
Sapan Bhatia17364fd2017-06-18 21:25:33 -07006EXTENSION_TARGET=$(PREFIX)/targets/service_extender.xtarget
7
Sapan Bhatia504cc972017-04-27 01:56:28 +02008XPROTOS_TMP := $(shell mktemp)
9
10xprotos = $(wildcard *.xproto)
11
Sapan Bhatia7148c082017-06-16 15:04:11 -070012all: $(xprotos)
Moshe Levi52b4f932017-05-19 04:27:43 +030013 $(XOSGEN) --attic attic --target $(DJANGO_TARGET) --output $@ $<
Sapan Bhatia504cc972017-04-27 01:56:28 +020014
Sapan Bhatia17364fd2017-06-18 21:25:33 -070015service_extender: $(xprotos)
16 $(XOSGEN) --attic attic --target $(EXTENSION_TARGET) --output $@ $<
17
18.PHONY: all service_extender
Sapan Bhatia504cc972017-04-27 01:56:28 +020019
20clean:
Sapan Bhatia17364fd2017-06-18 21:25:33 -070021 rm -f models.py models_decl.py