JavaCompilerCore/tools/old/Makefile

29 lines
578 B
Makefile
Raw Permalink Normal View History

2014-02-04 16:44:03 +00:00
JAVAC = javac -classpath .:
all: JavaLexer.class
$(JAVAC) *.java
pars: JavaLexer.class
$(JAVAC) JavaCompiler.java
JavaLexer.class: JavaParser.java JavaLexer.java
$(JAVAC) JavaLexer.java
JavaParser.class: JavaParser.java
$(JAVAC) JavaParser.java
JavaParser.java: JavaParser.jay
./jay -v JavaParser.jay < skeleton > JavaParser.java
JavaLexer.java: JavaLexer.lex.java
mv JavaLexer.lex.java JavaLexer.java
JavaLexer.lex.java: JavaLexer.lex
java -classpath .:JLex.jar JLex.Main JavaLexer.lex
clean:
rm *.class
rm JavaLexer.java
rm JavaParser.java
rm y.output