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=java -jar $(LABCOMM_JAR)
all: compiler
$(MAKE) -C lib
$(MAKE) -C lib/c run-test
all: $(SUBDIRS:%=make-%)
.PHONY: compiler
compiler:
.PHONY: make-compiler
make-compiler:
cd compiler ; ant jar
.PHONY: make-%
make-%:
$(MAKE) -C $* -e
.PHONY: test
test:
$(MAKE) -C test -e
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
all:
echo To be done...
test:
echo To be done...
clean:
echo To be done...
......@@ -3,6 +3,9 @@ all:
cd csharp ; make
cd java ; make
test:
$(MAKE) -C c -e run-test
clean:
cd c ; make clean
cd csharp ; make clean
......
......@@ -16,4 +16,4 @@ labcomm.dll: $(MODULES:%=se/lth/control/labcomm/%.cs) Makefile
mcs -out:$@ -target:library $(filter %.cs, $^)
clean:
rm labcomm.dll
rm -f labcomm.dll
......@@ -2,7 +2,9 @@ TESTS=basic simple nested
LABCOMM_JAR=../compiler/labComm.jar
LABCOMM=java -jar $(LABCOMM_JAR)
all: $(TESTS:%=test_%)
all:
test: $(TESTS:%=test_%)
# PYTHONPATH=../lib/python \
# ./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