aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-03-23 01:04:04 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-03-23 01:04:04 +0100
commit9673a0066bc18e7a03e0bb71c30128995d51e099 (patch)
tree644b0fc3a6fbb1ad16789b1e9ef19527b17d58bb
parentcff4bb40fe682c6c1b1462df9f2dc35da1d6c985 (diff)
Fix typo, add test target
-rw-r--r--Makefile3
-rw-r--r--main.go2
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2d563ed..ed2fbc1 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,9 @@ clean:
install: build
$(GO) $@
+test: generate
+ $(GO) $@
+
%.go: %.y
$(GO) tool yacc -o $@ $<
diff --git a/main.go b/main.go
index 6cc9a4b..c7cbe58 100644
--- a/main.go
+++ b/main.go
@@ -1,6 +1,6 @@
package main
-//go:generate -command yacc to tool yacc
+//go:generate -command yacc go tool yacc
//go:generate yacc -o parser.go parser.y
import (