/usr/share/doc/jflex/examples/java/Makefile is in jflex 1.4.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | # You need CUP v0.10j (or newer) for this makefile to work (for java12.cup)
#
# CUP classes should be included in CLASSPATH
CUP = java java_cup.Main -interface <
JFLEX = jflex
JAVA = java
JAVAC = javac
#JAVAC = jikes
JAVACFLAGS =
# --------------------------------------------------
all: test
test: lexer-output.txt
@(diff lexer-output.txt lexer-output.good && echo "Test OK!") || echo "Test failed!"
lexer-output.txt: compile
$(JAVA) TestLexer TestLexer.java > lexer-output.txt
compile: scanner parser unicode
$(JAVAC) $(JAVACFLAGS) JavaParser.java TestLexer.java
parser: parser.java
parser.java: java12.cup
$(CUP) java12.cup
scanner: Scanner.java
Scanner.java: java.flex
$(JFLEX) java.flex
unicode: UnicodeEscapes.java
UnicodeEscapes.java: unicode.flex
$(JFLEX) unicode.flex
clean:
rm -f *.class
rm -f *~
rm -f Scanner.java
rm -f parser.java
rm -f sym.java
rm -f UnicodeEscapes.java
rm -f lexer-output.txt
|