30 lines
887 B
Makefile
30 lines
887 B
Makefile
# Makefile
|
|
### IntelliJs play buttons do not work. Run in "src/test" folder with "make" command to run all
|
|
### Or run only parts with "make compile-javac", "make clean" etc.
|
|
|
|
all: compile-javac compile-raupenpiler
|
|
|
|
compile-javac:
|
|
javac -d .\resources\output\javac .\resources\input\CompilerInput.java
|
|
|
|
compile-raupenpiler:
|
|
cd ../.. ; mvn -DskipTests install
|
|
cd ../.. ; mvn exec:java -Dexec.mainClass="main.Main" -Dexec.args="'src/main/resources/input/CompilerInput.java' 'src/main/resources/output' "
|
|
|
|
test: test-javac test-raupenpiler
|
|
|
|
test-javac:
|
|
#compile-javac
|
|
#java -cp .\resources\output\javac CompilerInput
|
|
|
|
test-raupenpiler:
|
|
#java -cp .\resources\output\raupenpiler CompilerInput
|
|
|
|
clean:
|
|
rm -f ./resources/output/javac/*.class
|
|
rm -f ./resources/output/raupenpiler/*.class
|
|
rm -f ./java/*.class
|
|
rm -f ../main/resources/output/*.class
|
|
rm -f ../main/resources/logs/*.log
|
|
|