2024-05-31 17:09:04 +02:00
|
|
|
# Makefile
|
|
|
|
### IntelliJs play buttons do not work. Run in "src/test" folder with "make" command to run all
|
2024-06-19 12:49:46 +02:00
|
|
|
### Or run only parts with "make compile-javac", "make clean" etc.
|
2024-05-31 17:09:04 +02:00
|
|
|
|
2024-06-12 18:01:21 +02:00
|
|
|
all: compile-javac compile-raupenpiler
|
2024-05-31 17:09:04 +02:00
|
|
|
|
|
|
|
compile-javac:
|
2024-06-12 11:17:16 +02:00
|
|
|
javac -d .\resources\output\javac .\resources\input\CompilerInput.java
|
2024-05-31 17:09:04 +02:00
|
|
|
|
|
|
|
compile-raupenpiler:
|
2024-06-19 16:32:46 +02: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-06-25 16:41:04 +02:00
|
|
|
cp ../main/resources/output/CompilerInput.class .java/resources/output/raupenpiler
|
2024-05-31 17:09:04 +02:00
|
|
|
|
2024-06-25 16:41:04 +02:00
|
|
|
test: compile-javac compile-raupenpiler test-javac test-raupenpiler
|
2024-06-17 13:42:56 +02:00
|
|
|
|
|
|
|
test-javac:
|
|
|
|
|
|
|
|
test-raupenpiler:
|
2024-06-25 16:41:04 +02:00
|
|
|
mv ../main/resources/output/CompilerInput.class .java/main/
|
|
|
|
cd .java/main/
|
|
|
|
|
|
|
|
|
2024-06-12 18:01:21 +02:00
|
|
|
|
|
|
|
clean:
|
2024-05-31 17:09:04 +02:00
|
|
|
rm -f ./resources/output/javac/*.class
|
|
|
|
rm -f ./resources/output/raupenpiler/*.class
|
|
|
|
rm -f ./java/*.class
|
2024-06-12 11:17:16 +02:00
|
|
|
rm -f ../main/resources/output/*.class
|
2024-06-19 12:49:46 +02:00
|
|
|
rm -f ../main/resources/logs/*.log
|
2024-05-31 17:09:04 +02:00
|
|
|
|