/usr/share/doc/jflex/examples/cup/Makefile is in jflex 1.4.3-2.
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 | JAVA=java
JAVAC=javac
JFLEX=jflex
CUP=$(JAVA) java_cup.Main <
all: test
test: output.txt
@(diff output.txt output.good && echo "Test OK!") || echo "Test failed!"
output.txt: Main.class test.txt
$(JAVA) Main test.txt > output.txt
Main.class: Main.java Lexer.java parser.java
%.class: %.java
$(JAVAC) $^
Lexer.java: lcalc.flex
$(JFLEX) lcalc.flex
parser.java: ycalc.cup
$(CUP) ycalc.cup
clean:
rm -f parser.java Lexer.java sym.java output.txt *.class *~
|