forked from JavaTX/JavaCompilerCore
makefile is hopefully working now and able to compile projects with .java and .jav files
This commit is contained in:
parent
f093edb74f
commit
c9f125941d
20
makefile
20
makefile
@ -1,4 +1,4 @@
|
|||||||
JFLAGS = -g
|
JFLAGS = -g:none
|
||||||
JC = javac
|
JC = javac
|
||||||
|
|
||||||
JTX = JavaTXcompiler-0.1-jar-with-dependencies.jar
|
JTX = JavaTXcompiler-0.1-jar-with-dependencies.jar
|
||||||
@ -23,17 +23,19 @@ all:
|
|||||||
default: classes
|
default: classes
|
||||||
|
|
||||||
# Rule for creating directories
|
# Rule for creating directories
|
||||||
$(DIRS):
|
#$(DIRS):
|
||||||
@mkdir -p $@
|
# @mkdir -p $@
|
||||||
|
|
||||||
|
|
||||||
# Rule for compiling jav files
|
# Rule for compiling .jav files
|
||||||
$(DESTDIR)/%.class: $(SRCDIR)/%.jav | $(DIRS)
|
$(DESTDIR)/%.class: $(SRCDIR)/%.jav #| $(DIRS)
|
||||||
java -jar $(JTX) -d $(DESTDIR) -cp "src/main/java:target/dependencies/" $<
|
@echo "$(dir $@)"
|
||||||
|
java -jar $(JTX) -d "$(dir $@)" -cp "src/main/java:target/dependencies/" $<
|
||||||
|
|
||||||
|
# Rule for compiling .java files
|
||||||
|
$(DESTDIR)/%.class: $(SRCDIR)/%.java #| $(DIRS)
|
||||||
|
$(JC) -nowarn -d "$(dir $@)" -cp "src/main/java:out:target/dependencies/*" $(JFLAGS) $<
|
||||||
|
|
||||||
#rule for compiling java files
|
|
||||||
$(DESTDIR)/%.class: $(SRCDIR)/%.java | $(DIRS)
|
|
||||||
$(JC) -nowarn -d $(DESTDIR) -cp "src/main/java:out:target/dependencies/*" $(JFLAGS) $<
|
|
||||||
|
|
||||||
classes: $(JAVCLASSES) $(JAVACLASSES)
|
classes: $(JAVCLASSES) $(JAVACLASSES)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user