From b207718ed4ca47648cb065d0e1047730f94b3a37 Mon Sep 17 00:00:00 2001 From: Mithrandie Date: Sat, 1 Jul 2017 07:12:13 +0900 Subject: [PATCH] Update Makefile. --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 17f24c67..76ac9eb0 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,18 @@ ifeq ($(shell command -v glide 2>/dev/null),) curl https://glide.sh/get | sh endif +.PHONY: goyacc +goyacc: +ifeq ($(shell command -v goyacc 2>/dev/null),) + go get -u github.com/cznic/goyacc +endif + +.PHONY: yacc +yacc: goyacc + cd lib/parser && \ + goyacc -o parser.go -v parser.output parser.y && \ + cd ../.. + .PHONY: test test: go test -cover `glide novendor`