Sapan Bhatia | 504cc97 | 2017-04-27 01:56:28 +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 |
Sapan Bhatia | 17364fd | 2017-06-18 21:25:33 -0700 | [diff] [blame^] | 6 | EXTENSION_TARGET=$(PREFIX)/targets/service_extender.xtarget |
| 7 | |
Sapan Bhatia | 504cc97 | 2017-04-27 01:56:28 +0200 | [diff] [blame] | 8 | XPROTOS_TMP := $(shell mktemp) |
| 9 | |
| 10 | xprotos = $(wildcard *.xproto) |
| 11 | |
Sapan Bhatia | 7148c08 | 2017-06-16 15:04:11 -0700 | [diff] [blame] | 12 | all: $(xprotos) |
Moshe Levi | 52b4f93 | 2017-05-19 04:27:43 +0300 | [diff] [blame] | 13 | $(XOSGEN) --attic attic --target $(DJANGO_TARGET) --output $@ $< |
Sapan Bhatia | 504cc97 | 2017-04-27 01:56:28 +0200 | [diff] [blame] | 14 | |
Sapan Bhatia | 17364fd | 2017-06-18 21:25:33 -0700 | [diff] [blame^] | 15 | service_extender: $(xprotos) |
| 16 | $(XOSGEN) --attic attic --target $(EXTENSION_TARGET) --output $@ $< |
| 17 | |
| 18 | .PHONY: all service_extender |
Sapan Bhatia | 504cc97 | 2017-04-27 01:56:28 +0200 | [diff] [blame] | 19 | |
| 20 | clean: |
Sapan Bhatia | 17364fd | 2017-06-18 21:25:33 -0700 | [diff] [blame^] | 21 | rm -f models.py models_decl.py |