forked from go-bindata/go-bindata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
38 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,2 @@ | ||
all: regen check | ||
|
||
regen: | ||
go install ./... | ||
make -C testdata regen | ||
|
||
.PHONY: check | ||
check: errcheck go-nyet golint | ||
errcheck testdata/out/compress-memcopy.go | ||
errcheck testdata/out/compress-nomemcopy.go | ||
errcheck testdata/out/debug.go | ||
errcheck testdata/out/nocompress-memcopy.go | ||
errcheck testdata/out/nocompress-nomemcopy.go | ||
go-nyet testdata/out/compress-memcopy.go | ||
go-nyet testdata/out/compress-nomemcopy.go | ||
go-nyet testdata/out/debug.go | ||
go-nyet testdata/out/nocompress-memcopy.go | ||
go-nyet testdata/out/nocompress-nomemcopy.go | ||
golint testdata/out/compress-memcopy.go | ||
golint testdata/out/compress-nomemcopy.go | ||
golint testdata/out/debug.go | ||
golint testdata/out/nocompress-memcopy.go | ||
golint testdata/out/nocompress-nomemcopy.go | ||
|
||
errcheck: | ||
go get github.com/kisielk/errcheck | ||
|
||
go-nyet: | ||
go get github.com/barakmich/go-nyet | ||
|
||
golint: | ||
go get github.com/golang/lint/golint | ||
all: | ||
make -C testdata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,32 @@ | ||
regen: | ||
go-bindata -o out/compress-memcopy.go in/... | ||
go-bindata -nomemcopy -o out/compress-nomemcopy.go in/... | ||
go-bindata -debug -o out/debug.go in/... | ||
go-bindata -nocompress -o out/nocompress-memcopy.go in/... | ||
go-bindata -nocompress -nomemcopy -o out/nocompress-nomemcopy.go in/... | ||
.PHONY: check | ||
check: out/compress-memcopy.go out/compress-nomemcopy.go out/debug.go out/nocompress-memcopy.go out/nocompress-nomemcopy.go errcheck go-nyet golint | ||
$(foreach file, $(wildcard out/*.go), errcheck $(file);) | ||
$(foreach file, $(wildcard out/*.go), go-nyet $(file);) | ||
$(foreach file, $(wildcard out/*.go), golint $(file);) | ||
|
||
$(GOPATH)/bin/go-bindata: $(wildcard ../*.go) $(wildcard ../**/*.go) | ||
go install ../... | ||
|
||
out/compress-memcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata | ||
$(GOPATH)/bin/go-bindata -o $@ in/... | ||
|
||
out/compress-nomemcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata | ||
$(GOPATH)/bin/go-bindata -nomemcopy -o $@ in/... | ||
|
||
out/debug.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata | ||
$(GOPATH)/bin/go-bindata -debug -o $@ in/... | ||
|
||
out/nocompress-memcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata | ||
$(GOPATH)/bin/go-bindata -nocompress -o $@ in/... | ||
|
||
out/nocompress-nomemcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata | ||
$(GOPATH)/bin/go-bindata -nocompress -nomemcopy -o $@ in/... | ||
|
||
errcheck: | ||
go get github.com/kisielk/errcheck | ||
|
||
go-nyet: | ||
go get github.com/barakmich/go-nyet | ||
|
||
golint: | ||
go get github.com/golang/lint/golint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters