Skip to content
Snippets Groups Projects
Commit 7ba4679a authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Makefile cleanup

parent 031d8eff
No related branches found
No related tags found
No related merge requests found
SUBDIRS=compiler lib examples test
export LABCOMM_JAR=$(shell pwd)/compiler/labComm.jar export LABCOMM_JAR=$(shell pwd)/compiler/labComm.jar
export LABCOMM=java -jar $(LABCOMM_JAR) export LABCOMM=java -jar $(LABCOMM_JAR)
all: compiler all: $(SUBDIRS:%=make-%)
$(MAKE) -C lib
$(MAKE) -C lib/c run-test
.PHONY: compiler .PHONY: make-compiler
compiler: make-compiler:
cd compiler ; ant jar cd compiler ; ant jar
.PHONY: make-%
make-%:
$(MAKE) -C $* -e
.PHONY: test .PHONY: test
test: test: $(SUBDIRS:%=test-%)
$(MAKE) -C test -e
.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
all:
echo To be done...
test:
echo To be done...
clean:
echo To be done...
...@@ -3,6 +3,9 @@ all: ...@@ -3,6 +3,9 @@ all:
cd csharp ; make cd csharp ; make
cd java ; make cd java ; make
test:
$(MAKE) -C c -e run-test
clean: clean:
cd c ; make clean cd c ; make clean
cd csharp ; make clean cd csharp ; make clean
......
...@@ -16,4 +16,4 @@ labcomm.dll: $(MODULES:%=se/lth/control/labcomm/%.cs) Makefile ...@@ -16,4 +16,4 @@ labcomm.dll: $(MODULES:%=se/lth/control/labcomm/%.cs) Makefile
mcs -out:$@ -target:library $(filter %.cs, $^) mcs -out:$@ -target:library $(filter %.cs, $^)
clean: clean:
rm labcomm.dll rm -f labcomm.dll
...@@ -2,7 +2,9 @@ TESTS=basic simple nested ...@@ -2,7 +2,9 @@ TESTS=basic simple nested
LABCOMM_JAR=../compiler/labComm.jar LABCOMM_JAR=../compiler/labComm.jar
LABCOMM=java -jar $(LABCOMM_JAR) LABCOMM=java -jar $(LABCOMM_JAR)
all: $(TESTS:%=test_%) all:
test: $(TESTS:%=test_%)
# PYTHONPATH=../lib/python \ # PYTHONPATH=../lib/python \
# ./test_encoder_decoder.py --labcomm="$(LABCOMM)" basic.lc # ./test_encoder_decoder.py --labcomm="$(LABCOMM)" basic.lc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment