Commit a3fe903c authored by dbarbera's avatar dbarbera
Browse files

Refactor makefiles

parent 584a8ac0
...@@ -33,3 +33,6 @@ clean: ...@@ -33,3 +33,6 @@ clean:
make -C tests/regression clean make -C tests/regression clean
find . -name '*~' | xargs rm -f find . -name '*~' | xargs rm -f
find . -name '*.o' | xargs rm -f find . -name '*.o' | xargs rm -f
.PHONY: all test-parse test-ada test-llvm flake8 coverage compile-all install \
publish clean
EXAMPLES=test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 \ EXAMPLES=$(sort $(dir $(wildcard */)))
test11 test12 test-substrings test-expressions test-controlflow \
test-exitnested test-operators
coverage: coverage:
for v in $(EXAMPLES) ; do make -C $$v coverage && mv $$v/.coverage* . \ for v in $(EXAMPLES) ; do make -C $$v coverage && mv $$v/.coverage* . \
...@@ -8,3 +6,5 @@ coverage: ...@@ -8,3 +6,5 @@ coverage:
clean: clean:
for v in $(EXAMPLES); do make -C $$v clean ; done for v in $(EXAMPLES); do make -C $$v clean ; done
.PHONY: coverage clean
...@@ -18,3 +18,5 @@ coverage: ...@@ -18,3 +18,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c testcase rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c testcase
.PHONY: all edit check test-parse test-ada coverage clean
\ No newline at end of file
...@@ -29,4 +29,6 @@ test-llvm: ...@@ -29,4 +29,6 @@ test-llvm:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \ bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h ber.c acn.c asn1crt.c asn1crt.h
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
...@@ -32,3 +32,5 @@ clean: ...@@ -32,3 +32,5 @@ clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \ bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h ber.c acn.c asn1crt.c asn1crt.h
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -30,3 +30,5 @@ clean: ...@@ -30,3 +30,5 @@ clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \ bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h ber.c acn.c asn1crt.c asn1crt.h
.PHONY: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
...@@ -30,3 +30,5 @@ clean: ...@@ -30,3 +30,5 @@ clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \ bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h ber.c acn.c asn1crt.c asn1crt.h
.PHONY: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
...@@ -3,9 +3,6 @@ all: test-ada ...@@ -3,9 +3,6 @@ all: test-ada
edit: edit:
../../../opengeode.py myfunction.pr system_structure.pr ../../../opengeode.py myfunction.pr system_structure.pr
check:
../../../opengeode.py myfunction.pr system_structure.pr --check
test-parse: test-parse:
../../../opengeode.py myfunction.pr system_structure.pr --check ../../../opengeode.py myfunction.pr system_structure.pr --check
...@@ -36,3 +33,4 @@ clean: ...@@ -36,3 +33,4 @@ clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c *.ll *.s testcase bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c *.ll *.s testcase
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -22,3 +22,5 @@ coverage: ...@@ -22,3 +22,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -32,3 +32,5 @@ clean: ...@@ -32,3 +32,5 @@ clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \ bin *.wrn *.gpr testcase *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h ber.c acn.c asn1crt.c asn1crt.h
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
all: test-ada test-llvm all: test-ada test-llvm
edit:
../../../opengeode.py og.pr system_structure.pr
test-parse: test-parse:
../../../opengeode.py og.pr system_structure.pr --check ../../../opengeode.py og.pr system_structure.pr --check
...@@ -27,3 +30,5 @@ coverage: ...@@ -27,3 +30,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -29,3 +29,5 @@ coverage: ...@@ -29,3 +29,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s *.pdf *.svg *.png bin *.wrn *.gpr testcase *.ll *.s *.pdf *.svg *.png
.PHONY: all edit test-parse test-ada test-llvm test-exports coverage clean
\ No newline at end of file
all: test-ada test-llvm all: test-ada test-llvm
edit:
../../../opengeode.py orchestrator.pr system_structure.pr
test-parse: test-parse:
../../../opengeode.py orchestrator.pr system_structure.pr --check ../../../opengeode.py orchestrator.pr system_structure.pr --check
...@@ -19,3 +22,5 @@ coverage: ...@@ -19,3 +22,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
all: test-ada test-llvm all: test-ada test-llvm
edit:
../../../opengeode.py fce.pr system_structure.pr
test-parse: test-parse:
../../../opengeode.py fce.pr system_structure.pr --check ../../../opengeode.py fce.pr system_structure.pr --check
...@@ -19,3 +22,5 @@ coverage: ...@@ -19,3 +22,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -22,3 +22,5 @@ coverage: ...@@ -22,3 +22,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
all: test-ada test-llvm all: test-ada test-llvm
edit:
../../../opengeode.py function0.pr system_structure.pr
test-parse: test-parse:
../../../opengeode.py function0.pr system_structure.pr --check ../../../opengeode.py function0.pr system_structure.pr --check
...@@ -19,3 +22,5 @@ coverage: ...@@ -19,3 +22,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
all: test-ada test-llvm all: test-ada test-llvm
edit:
../../../opengeode.py myfunction.pr system_structure.pr
test-parse: test-parse:
../../../opengeode.py myfunction.pr system_structure.pr --check ../../../opengeode.py myfunction.pr system_structure.pr --check
...@@ -29,3 +32,5 @@ coverage: ...@@ -29,3 +32,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c testcase *.ll *.s bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -22,3 +22,5 @@ coverage: ...@@ -22,3 +22,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -32,3 +32,5 @@ coverage: ...@@ -32,3 +32,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr datav*.? ber.c xer.c asn1crt.? acn.c real.c *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -22,3 +22,5 @@ coverage: ...@@ -22,3 +22,5 @@ coverage:
clean: clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
bin *.wrn *.gpr testcase *.ll *.s bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment