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

Refactor makefiles

parent c84836c5
all: compile-all
test-parse:
@make -C tests/regression test-parse
@make -s -C tests/regression test-parse
test-ada:
@make -C tests/regression test-ada
@make -s -C tests/regression test-ada
test-llvm:
@make -C tests/regression test-llvm
@make -s -C tests/regression test-llvm
coverage:
@make -C tests/regression coverage
@make -s -C tests/regression coverage
flake8:
@echo Generating flake8_report file
......@@ -30,9 +30,9 @@ publish: install
python setup.py sdist upload
clean:
make -C tests/regression clean
find . -name '*~' | xargs rm -f
find . -name '*.o' | xargs rm -f
@make -s -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
benchmark:
@$(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-ada > /dev/null 2>&1 && ([ -f test_ada ] || exit 1)
@make test-llvm > /dev/null 2>&1 && ([ -f test_llvm ] || exit 1)
@echo "binary-size:"
@echo " test_llvm: $$(du -b test_llvm | cut -f1)"
@echo " test_ada: $$(du -b test_ada | cut -f1)"
.PHONY: benchmark
\ No newline at end of file
clean:
@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:
coverage:
coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda
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
.PHONY: all edit check test-parse test-ada coverage
\ No newline at end of file
......@@ -28,9 +28,4 @@ test-llvm:
gcc controlflow.o dataview-uniq.o test_llvm.o -o test_llvm -lm
./test_llvm | diff expected -
clean:
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: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm
\ No newline at end of file
......@@ -30,9 +30,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda
clean:
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: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -28,9 +28,4 @@ test-llvm:
gcc expressions.o dataview-uniq.o test_llvm.o -o test_llvm -lm
./test_llvm
clean:
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: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm
\ No newline at end of file
......@@ -28,9 +28,4 @@ test-llvm:
clang operators.o dataview-uniq.o test_llvm.o -o test_llvm -lm
./test_llvm | diff expected -
clean:
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: all edit test-parse test-ada test-llvm clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm
\ No newline at end of file
......@@ -31,9 +31,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda
clean:
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: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -21,8 +21,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda
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
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -30,9 +30,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda
clean:
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: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -30,9 +30,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py og.pr system_structure.pr --toAda
clean:
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: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -28,8 +28,4 @@ test-export:
coverage:
coverage run -p ../../../opengeode.py trafficlight.pr system_structure.pr --toAda
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
.PHONY: all edit test-parse test-ada test-llvm test-exports coverage
\ No newline at end of file
......@@ -21,8 +21,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda
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
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -21,8 +21,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py fce.pr system_structure.pr --toAda
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
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -21,8 +21,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda
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
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -21,8 +21,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py function0.pr system_structure.pr --toAda
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
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -31,9 +31,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py myfunction.pr system_structure.pr --toAda
clean:
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: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -21,8 +21,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda
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
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -31,9 +31,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py orchestrator.pr system_structure.pr --toAda
clean:
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: all edit test-parse test-ada test-llvm coverage clean
\ No newline at end of file
.PHONY: all edit test-parse test-ada test-llvm coverage
\ No newline at end of file
......@@ -21,8 +21,4 @@ test-llvm:
coverage:
coverage run -p ../../../opengeode.py challenge.pr system_structure.pr --toAda
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
.PHONY: all edit test-parse test-ada test-llvm coverage
\ 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