/usr/share/doc/jflex/examples/byaccj/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 | # only works with the Java extension of yacc:
# byacc/j from http://troi.lincom-asg.com/~rjamison/byacc/
JFLEX = jflex
BYACCJ = yacc -J
JAVAC = javac
# targets:
all: Parser.class
run: Parser.class
java Parser
build: clean Parser.class
clean:
rm -f *~ *.class *.java
Parser.class: Yylex.java Parser.java
$(JAVAC) Parser.java
Yylex.java: calc.flex
$(JFLEX) calc.flex
Parser.java: calc.y
$(BYACCJ) calc.y
|