Makefile go generate base

This commit is contained in:
Máximo Cuadros
2017-04-05 18:38:42 +02:00
parent 3a2a62baad
commit d289a80e4c
4 changed files with 15 additions and 7 deletions

View File

@ -1,5 +1,13 @@
samples:
git clone git@github.com:github/linguist.git .linguist\
LINGUIST_PATH = .linguist
test: samples
go test -v ./...
$(LINGUIST_PATH):
git clone git@github.com:github/linguist.git $@
test: $(LINGUIST_PATH)
go test -v ./...
code-generate: $(LINGUIST_PATH)
go run internal/code-generator/main.go
clean:
rm -rf $(LINGUIST_PATH)