source: other-projects/rsyntax-textarea/devel-packages/jflex-1.4.3/examples/cup/Makefile@ 25584

Last change on this file since 25584 was 25584, checked in by davidb, 12 years ago

Initial cut an a text edit area for GLI that supports color syntax highlighting

File size: 466 bytes
Line 
1JAVA=java
2JAVAC=javac
3JFLEX=jflex
4CUP=$(JAVA) java_cup.Main <
5
6all: test
7
8test: output.txt
9 @(diff output.txt output.good && echo "Test OK!") || echo "Test failed!"
10
11output.txt: Main.class test.txt
12 $(JAVA) Main test.txt > output.txt
13
14Main.class: Main.java Lexer.java parser.java
15
16%.class: %.java
17 $(JAVAC) $^
18
19Lexer.java: lcalc.flex
20 $(JFLEX) lcalc.flex
21
22parser.java: ycalc.cup
23 $(CUP) ycalc.cup
24
25clean:
26 rm -f parser.java Lexer.java sym.java output.txt *.class *~
Note: See TracBrowser for help on using the repository browser.