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
|
|
|
|
### Or run only parts with "make compile-javac", "make delete" etc.
|
|
|
|
|
|
|
|
all: delete compile-javac compile-raupenpiler
|
|
|
|
|
|
|
|
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:
|
|
|
|
## funktioniert bisher nicht, das will die Klasse nicht laden, der traditionelle Weg findet externe Libraries (antlr) nicht, maven hat andere Probleme
|
|
|
|
## Unseren Compiler also erstmal händisch starten: main.java/Main.java
|
|
|
|
#javac -d ./resources/output/raupenpiler -cp ../main/java;../../.lib/antlr-4.12.0-complete.jar ../main/java/Main.java
|
|
|
|
#java -cp ./resources/output/raupenpiler Main
|
|
|
|
#mvn -f ../../ compile
|
|
|
|
#mvn -f ../../ exec:java -Dexec.mainClass="Main"
|
|
|
|
|
|
|
|
delete:
|
|
|
|
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-05-31 15:09:04 +00:00
|
|
|
|