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

@ -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)

@ -2,7 +2,7 @@ package slinguist
// CODE GENERATED AUTOMATICALLY WITH github.com/src-d/simple-linguist/cli/slinguist-generate
// THIS FILE SHOULD NOT BE EDITED BY HAND
// Extracted from github/linguist commit: 8b2d15a2d527c363dead3efe5e4dc3cb74fa4613
// Extracted from github/linguist commit: 3a2a62baad5363a604828706f8df730902a542b0
import (
"path/filepath"

@ -1,3 +1,3 @@
package slinguist
//go:generate go run internal/code-generator/main.go
//go:generate make code-generate

@ -2,7 +2,7 @@ package slinguist
// CODE GENERATED AUTOMATICALLY WITH github.com/src-d/simple-linguist/cli/slinguist-generate
// THIS FILE SHOULD NOT BE EDITED BY HAND
// Extracted from github/linguist commit: 8b2d15a2d527c363dead3efe5e4dc3cb74fa4613
// Extracted from github/linguist commit: 3a2a62baad5363a604828706f8df730902a542b0
var languagesByExtension = map[string][]string{
".1": {"Roff"},