blob: ffbc783c23e2a9b02185d4a92c5d3086ec3716d2 [file] [log] [blame]
# Replace the line below with the location of xosgen
PREFIX=.
XOSGEN=$(PREFIX)/tool/xosgen
DJANGO_TARGET=$(PREFIX)/targets/service.xtarget
EXTENSION_TARGET=$(PREFIX)/targets/service_extender.xtarget
XPROTOS_TMP := $(shell mktemp)
xprotos = $(wildcard *.xproto)
all: $(xprotos)
$(XOSGEN) --attic attic --target $(DJANGO_TARGET) --output $@ $<
service_extender: $(xprotos)
$(XOSGEN) --attic attic --target $(EXTENSION_TARGET) --output $@ $<
.PHONY: all service_extender
clean:
rm -f models.py models_decl.py