Commit 3a62aadc authored by dbarbera's avatar dbarbera
Browse files

Refactor makefiles

parent c84836c5
all: compile-all all: compile-all
test-parse: test-parse:
@make -C tests/regression test-parse @make -s -C tests/regression test-parse
test-ada: test-ada:
@make -C tests/regression test-ada @make -s -C tests/regression test-ada
test-llvm: test-llvm:
@make -C tests/regression test-llvm @make -s -C tests/regression test-llvm
coverage: coverage:
@make -C tests/regression coverage @make -s -C tests/regression coverage
flake8: flake8:
@echo Generating flake8_report file @echo Generating flake8_report file
...@@ -30,9 +30,9 @@ publish: install ...@@ -30,9 +30,9 @@ publish: install
python setup.py sdist upload python setup.py sdist upload
clean: clean:
make -C tests/regression clean @make -s -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 \ .PHONY: all test-parse test-ada test-llvm flake8 coverage compile-all install \
publish clean publish clean
benchmark: benchmark:
@$(MAKE) test-ada > /dev/null 2>&1 && ([ -f test_ada ] || exit 1) @make test-ada > /dev/null 2>&1 && ([ -f test_ada ] || exit 1)
@$(MAKE) test-llvm > /dev/null 2>&1 && ([ -f test_llvm ] || exit 1) @make test-llvm > /dev/null 2>&1 && ([ -f test_llvm ] || exit 1)
@echo "binary-size:" @echo "binary-size:"
@echo " test_llvm: $$(du -b test_llvm | cut -f1)" @echo " test_llvm: $$(du -b test_llvm | cut -f1)"
@echo " test_ada: $$(du -b test_ada | cut -f1)" @echo " test_ada: $$(du -b test_ada | cut -f1)"
.PHONY: benchmark clean:
\ No newline at end of file @rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg \
examiner bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h \
real.c xer.c ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: benchmark clean
\ No newline at end of file
...@@ -17,8 +17,4 @@ test-ada: ...@@ -17,8 +17,4 @@ test-ada:
coverage: coverage:
coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda
.PHONY: all edit check test-parse test-ada coverage
clean: \ No newline at end of file
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
...@@ -28,9 +28,4 @@ test-llvm: ...@@ -28,9 +28,4 @@ test-llvm:
gcc controlflow.o dataview-uniq.o test_llvm.o -o test_llvm -lm gcc controlflow.o dataview-uniq.o test_llvm.o -o test_llvm -lm
./test_llvm | diff expected - ./test_llvm | diff expected -
clean: .PHONY: all edit test-parse test-ada test-llvm
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
...@@ -30,9 +30,4 @@ test-llvm: ...@@ -30,9 +30,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -28,9 +28,4 @@ test-llvm: ...@@ -28,9 +28,4 @@ test-llvm:
gcc expressions.o dataview-uniq.o test_llvm.o -o test_llvm -lm gcc expressions.o dataview-uniq.o test_llvm.o -o test_llvm -lm
./test_llvm ./test_llvm
clean: .PHONY: all edit test-parse test-ada test-llvm
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
...@@ -28,9 +28,4 @@ test-llvm: ...@@ -28,9 +28,4 @@ test-llvm:
clang operators.o dataview-uniq.o test_llvm.o -o test_llvm -lm clang operators.o dataview-uniq.o test_llvm.o -o test_llvm -lm
./test_llvm | diff expected - ./test_llvm | diff expected -
clean: .PHONY: all edit test-parse test-ada test-llvm
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
...@@ -31,9 +31,4 @@ test-llvm: ...@@ -31,9 +31,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -21,8 +21,4 @@ test-llvm: ...@@ -21,8 +21,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -30,9 +30,4 @@ test-llvm: ...@@ -30,9 +30,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -30,9 +30,4 @@ test-llvm: ...@@ -30,9 +30,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -28,8 +28,4 @@ test-export: ...@@ -28,8 +28,4 @@ test-export:
coverage: coverage:
coverage run -p ../../../opengeode.py trafficlight.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py trafficlight.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm test-exports coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
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
...@@ -21,8 +21,4 @@ test-llvm: ...@@ -21,8 +21,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -21,8 +21,4 @@ test-llvm: ...@@ -21,8 +21,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py fce.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py fce.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -21,8 +21,4 @@ test-llvm: ...@@ -21,8 +21,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -21,8 +21,4 @@ test-llvm: ...@@ -21,8 +21,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py function0.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py function0.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -31,9 +31,4 @@ test-llvm: ...@@ -31,9 +31,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -21,8 +21,4 @@ test-llvm: ...@@ -21,8 +21,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -31,9 +31,4 @@ test-llvm: ...@@ -31,9 +31,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h real.c xer.c \
ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
...@@ -21,8 +21,4 @@ test-llvm: ...@@ -21,8 +21,4 @@ test-llvm:
coverage: coverage:
coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda
clean: .PHONY: all edit test-parse test-ada test-llvm coverage
rm -rf *.adb *.ads *.pyc runSpark.sh spark.idx *.o *.ali gnat.cfg examiner \ \ No newline at end of file
bin *.wrn *.gpr testcase *.ll *.s
.PHONY: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
Supports Markdown
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