blob: 9c7bf1ef9b74204ed1009ff50d772666c065dfed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# This Makefile is designed to be simple and readable. It does not
# aim at portability. It requires GNU Make.
BISON = bison
JAVAC = javac
JAVA = java
all: Calc.class
%.java %.html %.gv: %.y
$(BISON) $(BISONFLAGS) --html --graph -o $*.java $<
%.class: %.java
$(JAVAC) $(JAVACFLAGS) $<
run: Calc.class
@echo "Type arithmetic expressions. Quit with ctrl-d."
$(JAVA) $(JAVAFLAGS) Calc
clean:
rm -f *.class Calc.java Calc.html Calc.xml Calc.gv
|