Skip to content

Commit

Permalink
Update Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithrandie committed Jun 30, 2017
1 parent e72b834 commit b207718
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit b207718

Please sign in to comment.