32 lines
962 B
Makefile
Raw Normal View History

# 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-06-12 18:01:21 +02:00
all: compile-javac compile-raupenpiler
compile-javac:
2024-06-12 11:17:16 +02:00
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' "
2024-06-25 16:41:04 +02:00
cp ../main/resources/output/CompilerInput.class .java/resources/output/raupenpiler
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:
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