aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a615f2c2b3e4a313b133e3bea3045d9733ba86ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
PROG := calc

$(PROG): $(wildcard *.go) $(PROG).go
	go build

%.go: %.y
	go tool yacc -o $@ $<

clean:
	$(RM) $(PROG) $(PROG).go y.output

.PHONY: clean