Commit a3fe903c authored by dbarbera's avatar dbarbera
Browse files

Refactor makefiles

parent 584a8ac0
......@@ -33,3 +33,6 @@ clean:
make -C tests/regression clean
find . -name '*~' | 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 \
test11 test12 test-substrings test-expressions test-controlflow \
test-exitnested test-operators
EXAMPLES=$(sort $(dir $(wildcard */)))
coverage:
for v in $(EXAMPLES) ; do make -C $$v coverage && mv $$v/.coverage* . \
......@@ -8,3 +6,5 @@ coverage:
clean:
for v in $(EXAMPLES); do make -C $$v clean ; done
.PHONY: coverage clean
......@@ -18,3 +18,5 @@ coverage:
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
.PHONY: all edit check test-parse test-ada coverage clean
\ No newline at end of file
......@@ -29,4 +29,6 @@ test-llvm:
clean:
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 \
ber.c acn.c asn1crt.c asn1crt.h
\ No newline at end of file
ber.c acn.c asn1crt.c asn1crt.h
.PHONY: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
......@@ -32,3 +32,5 @@ clean:
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 \
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:
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 \
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:
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 \
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
edit:
../../../opengeode.py myfunction.pr system_structure.pr
check:
../../../opengeode.py myfunction.pr system_structure.pr --check
test-parse:
../../../opengeode.py myfunction.pr system_structure.pr --check
......@@ -36,3 +33,4 @@ 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 *.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:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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:
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 \
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
edit:
../../../opengeode.py og.pr system_structure.pr
test-parse:
../../../opengeode.py og.pr system_structure.pr --check
......@@ -27,3 +30,5 @@ coverage:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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
edit:
../../../opengeode.py orchestrator.pr system_structure.pr
test-parse:
../../../opengeode.py orchestrator.pr system_structure.pr --check
......@@ -19,3 +22,5 @@ coverage:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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
edit:
../../../opengeode.py fce.pr system_structure.pr
test-parse:
../../../opengeode.py fce.pr system_structure.pr --check
......@@ -19,3 +22,5 @@ coverage:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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
edit:
../../../opengeode.py function0.pr system_structure.pr
test-parse:
../../../opengeode.py function0.pr system_structure.pr --check
......@@ -19,3 +22,5 @@ coverage:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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
edit:
../../../opengeode.py myfunction.pr system_structure.pr
test-parse:
../../../opengeode.py myfunction.pr system_structure.pr --check
......@@ -29,3 +32,5 @@ coverage:
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 *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
......@@ -22,3 +22,5 @@ coverage:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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:
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 *.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:
clean:
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \
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