aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index de7a05a..2d563ed 100644
--- a/Makefile
+++ b/Makefile
@@ -4,16 +4,22 @@ AUTOGEN := $(YYFILES:.y=.go)
GO := go
build: $(GOFILES) $(AUTOGEN)
- $(GO) build
+ $(GO) $@
-%.go: %.y
- $(GO) tool yacc -o $@ $<
+run: $(GOFILES) $(AUTOGEN)
+ $(GO) $@ $^
+
+generate:
+ $(GO) $@
clean:
- $(GO) clean
+ $(GO) $@
$(RM) $(AUTOGEN) y.output
install: build
- $(GO) install
+ $(GO) $@
+
+%.go: %.y
+ $(GO) tool yacc -o $@ $<
.PHONY: clean