Fixed Makefile
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
parent
6a971345d4
commit
b6cc925e02
5
pom.xml
5
pom.xml
@ -9,8 +9,9 @@
|
|||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>22</maven.compiler.source>
|
<java.version>22</java.version>
|
||||||
<maven.compiler.target>22</maven.compiler.target>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@ -2,20 +2,17 @@
|
|||||||
### IntelliJs play buttons do not work. Run in "src/test" folder with "make" command to run all
|
### 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.
|
### Or run only parts with "make compile-javac", "make delete" etc.
|
||||||
|
|
||||||
all: delete compile-javac compile-raupenpiler
|
all: compile-javac compile-raupenpiler
|
||||||
|
|
||||||
compile-javac:
|
compile-javac:
|
||||||
javac -d .\resources\output\javac .\resources\input\CompilerInput.java
|
javac -d .\resources\output\javac .\resources\input\CompilerInput.java
|
||||||
|
|
||||||
compile-raupenpiler:
|
compile-raupenpiler:
|
||||||
## funktioniert bisher nicht, das will die Klasse nicht laden, der traditionelle Weg findet externe Libraries (antlr) nicht, maven hat andere Probleme
|
cd ../.. ; mvn -DskipTests package
|
||||||
## Unseren Compiler also erstmal händisch starten: main.java/Main.java
|
cd ../.. ; mvn exec:java -Dexec.mainClass="Main" # -Dexec.args="arg0 arg1 arg2"
|
||||||
#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:
|
|
||||||
|
clean:
|
||||||
rm -f ./resources/output/javac/*.class
|
rm -f ./resources/output/javac/*.class
|
||||||
rm -f ./resources/output/raupenpiler/*.class
|
rm -f ./resources/output/raupenpiler/*.class
|
||||||
rm -f ./java/*.class
|
rm -f ./java/*.class
|
||||||
|
Loading…
Reference in New Issue
Block a user