no screaming
This commit is contained in:
parent
062f796842
commit
01c5ff18fa
18
Makefile
18
Makefile
@ -1,26 +1,26 @@
|
||||
SOURCES = $(shell find . -name "*.go" | grep -v testdocs_test.go)
|
||||
PREFIX ?= ~/bin
|
||||
sources = $(shell find . -name "*.go" | grep -v testdocs_test.go)
|
||||
prefix ?= ~/bin
|
||||
|
||||
default: build
|
||||
|
||||
libdocreflect: $(SOURCES)
|
||||
libdocreflect: $(sources)
|
||||
go build .
|
||||
|
||||
libgenerate: $(SOURCES)
|
||||
libgenerate: $(sources)
|
||||
go build ./generate
|
||||
|
||||
.bin:
|
||||
mkdir -p .bin
|
||||
|
||||
.bin/docreflect: $(SOURCES) .bin
|
||||
.bin/docreflect: $(sources) .bin
|
||||
go build -o .bin/docreflect ./cmd/docreflect
|
||||
|
||||
build: libdocreflect libgenerate .bin/docreflect
|
||||
|
||||
testdocs_test.go: $(SOURCES) .bin/docreflect
|
||||
testdocs_test.go: $(sources) .bin/docreflect
|
||||
.bin/docreflect generate docreflect_test code.squareroundforest.org/arpio/docreflect/internal/tests/src/testpackage > testdocs_test.go
|
||||
|
||||
.cover: $(SOURCES) testdocs_test.go
|
||||
.cover: $(sources) testdocs_test.go
|
||||
go test -count 1 -coverprofile .cover . ./generate
|
||||
|
||||
check: .cover
|
||||
@ -31,11 +31,11 @@ cover: .cover
|
||||
showcover: .cover
|
||||
go tool cover -html .cover
|
||||
|
||||
fmt: $(SOURCES)
|
||||
fmt: $(sources)
|
||||
go fmt . ./generate ./cmd/docreflect
|
||||
|
||||
install: .bin/docreflect
|
||||
cp .bin/docreflect $(PREFIX)
|
||||
cp .bin/docreflect $(prefix)
|
||||
|
||||
clean:
|
||||
go clean ./...
|
||||
|
||||
Loading…
Reference in New Issue
Block a user