2024-05-31 15:09:04 +00:00
|
|
|
# Makefile
|
|
|
|
### IntelliJs play buttons do not work. Run in "src/test" folder with "make" command to run all
|
2024-06-19 10:49:46 +00:00
|
|
|
### Or run only parts with "make compile-javac", "make clean" etc.
|
2024-05-31 15:09:04 +00:00
|
|
|
|
2024-06-12 16:01:21 +00:00
|
|
|
all: compile-javac compile-raupenpiler
|
2024-05-31 15:09:04 +00:00
|
|
|
|
|
|
|
compile-javac:
|
2024-06-12 09:17:16 +00:00
|
|
|
javac -d .\resources\output\javac .\resources\input\CompilerInput.java
|
2024-05-31 15:09:04 +00:00
|
|
|
|
|
|
|
compile-raupenpiler:
|
2024-06-19 14:32:46 +00:00
|
|
|
cd ../.. ; mvn -DskipTests install
|
|
|
|
cd ../.. ; mvn exec:java -Dexec.mainClass="main.Main" -Dexec.args="'src/main/resources/input/CompilerInput.java' 'src/main/resources/output' "
|
2024-05-31 15:09:04 +00:00
|
|
|
|
2024-06-17 11:42:56 +00:00
|
|
|
test: test-javac test-raupenpiler
|
|
|
|
|
|
|
|
test-javac:
|
2024-06-17 15:42:50 +00:00
|
|
|
#compile-javac
|
|
|
|
#java -cp .\resources\output\javac CompilerInput
|
2024-06-17 11:42:56 +00:00
|
|
|
|
|
|
|
test-raupenpiler:
|
2024-06-17 15:42:50 +00:00
|
|
|
#java -cp .\resources\output\raupenpiler CompilerInput
|
2024-06-12 16:01:21 +00:00
|
|
|
|
|
|
|
clean:
|
2024-05-31 15:09:04 +00:00
|
|
|
rm -f ./resources/output/javac/*.class
|
|
|
|
rm -f ./resources/output/raupenpiler/*.class
|
|
|
|
rm -f ./java/*.class
|
2024-06-12 09:17:16 +00:00
|
|
|
rm -f ../main/resources/output/*.class
|
2024-06-19 10:49:46 +00:00
|
|
|
rm -f ../main/resources/logs/*.log
|
2024-05-31 15:09:04 +00:00
|
|
|
|