Makefile 732 Bytes
Newer Older
1
SUBDIRS=compiler lib test examples
2
3
4
export LABCOMM_JAR=$(shell pwd)/compiler/labComm.jar
export LABCOMM=java -jar $(LABCOMM_JAR) 

Anders Blomdell's avatar
Anders Blomdell committed
5
all: $(SUBDIRS:%=make-%)
6

Anders Blomdell's avatar
Anders Blomdell committed
7
8
.PHONY: make-compiler
make-compiler:
9
10
	cd compiler ; ant jar

Anders Blomdell's avatar
Anders Blomdell committed
11
12
13
.PHONY: make-%
make-%:
	$(MAKE) -C $* -e 
14
15

.PHONY: test
Anders Blomdell's avatar
Anders Blomdell committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
test: $(SUBDIRS:%=test-%)

.PHONY: test-compiler
test-compiler:

.PHONY: test-%
test-%:
	$(MAKE) -C $* -e test

.PHONY: clean
clean: $(SUBDIRS:%=clean-%)

.PHONY: clean-compiler
clean-compiler:
	cd compiler ; ant clean

.PHONY: clean-%
clean-%:
	$(MAKE) -C $* -e clean
Anders Blomdell's avatar
Anders Blomdell committed
35
36
37
38
39
40
41
42
43
44
45

.PHONY: distclean
distclean: $(SUBDIRS:%=distclean-%)

.PHONY: distclean-compiler
distclean-compiler:
	cd compiler ; ant clean

.PHONY: distclean-%
distclean-%:
	$(MAKE) -C $* -e distclean