File: Makefile

package info (click to toggle)
bison-doc 1%3A3.8.2%2Brepack-1
  • links: PTS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 2,320 kB
  • sloc: yacc: 2,433; sh: 723; lex: 294; makefile: 223; cpp: 201; perl: 115
file content (21 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (4)
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