aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 (