mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-12 12:19:46 +00:00
Makefile go generate base
This commit is contained in:
14
Makefile
14
Makefile
@ -1,5 +1,13 @@
|
|||||||
samples:
|
LINGUIST_PATH = .linguist
|
||||||
git clone git@github.com:github/linguist.git .linguist\
|
|
||||||
|
|
||||||
test: samples
|
$(LINGUIST_PATH):
|
||||||
|
git clone git@github.com:github/linguist.git $@
|
||||||
|
|
||||||
|
test: $(LINGUIST_PATH)
|
||||||
go test -v ./...
|
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
|
// CODE GENERATED AUTOMATICALLY WITH github.com/src-d/simple-linguist/cli/slinguist-generate
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: 8b2d15a2d527c363dead3efe5e4dc3cb74fa4613
|
// Extracted from github/linguist commit: 3a2a62baad5363a604828706f8df730902a542b0
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
package slinguist
|
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
|
// CODE GENERATED AUTOMATICALLY WITH github.com/src-d/simple-linguist/cli/slinguist-generate
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// 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{
|
var languagesByExtension = map[string][]string{
|
||||||
".1": {"Roff"},
|
".1": {"Roff"},
|
||||||
|
Reference in New Issue
Block a user