Makefile 320 Bytes
Newer Older
1
LABCOMM_JAR=../../compiler/labcomm_compiler.jar
Anders Blomdell's avatar
Anders Blomdell committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
LABCOMM=java -jar $(LABCOMM_JAR) 

all: gen/animal.py

.PHONY: test
test: gen/animal.py
	PYTHONPATH=../../lib/python:gen ./duck_typing.py


gen/.dir:
	mkdir -p $@

gen/%.py: %.lc | gen/.dir
	$(LABCOMM) --python=$@ $<

.PHONY: clean distclean
clean distclean:
	rm -rf gen