From 9673a0066bc18e7a03e0bb71c30128995d51e099 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 23 Mar 2015 01:04:04 +0100 Subject: Fix typo, add test target --- Makefile | 3 +++ main.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 ( -- cgit v1.2.3