aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-01-09 23:51:57 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-01-09 23:51:57 +0100
commitea42906d0a5a96abb62ec0c622921335fba121d2 (patch)
tree6e9f1a79d13d16f276770bb13f0dff607e67721d
parent625fc0e7dc7d8b312859db0ef0ccdb7aa812a3f4 (diff)
Add run and generate targets
-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