ready for v1.0rc1
This commit is contained in:
parent
84d48a6eea
commit
ce5764840f
15 changed files with 140 additions and 49 deletions
16
Makefile
16
Makefile
|
|
@ -4,23 +4,29 @@ VERSION=$(shell cat VERSION)
|
|||
GCFLAGS=-gcflags '-e'
|
||||
LDFLAGS=-ldflags '-X main.version=$(VERSION) -s -w'
|
||||
PROGRAM=docstore
|
||||
ENV=CGO_ENABLED=0
|
||||
ENV=CGO_ENABLED=0 GO111MODULE=on
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
setup:
|
||||
$(CC) get github.com/client9/misspell
|
||||
|
||||
vendor: clean codeqa
|
||||
release: clean generate gofmt codeqa
|
||||
$(ENV) $(CC) $(BUILD) $(LDFLAGS)
|
||||
|
||||
release-vendor: clean generate gofmt codeqa
|
||||
$(ENV) $(CC) $(BUILD) -mod=vendor $(LDFLAGS)
|
||||
|
||||
$(PROGRAM): clean codeqa
|
||||
vendor: clean generate gofmt
|
||||
$(ENV) $(CC) $(BUILD) -mod=vendor $(LDFLAGS)
|
||||
|
||||
$(PROGRAM): clean generate gofmt
|
||||
$(ENV) $(CC) $(BUILD) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
$(CC) clean -x
|
||||
|
||||
codeqa: generate gofmt misspell golint test
|
||||
codeqa: misspell golint test
|
||||
|
||||
generate:
|
||||
$(CC) generate
|
||||
|
|
@ -45,4 +51,4 @@ else
|
|||
$(info skipping tests of other platforms)
|
||||
endif
|
||||
|
||||
.PHONY: setup vendor build clean codeqa generate gofmt golint misspell test
|
||||
.PHONY: setup release release-vendor vendor build clean codeqa generate gofmt golint misspell test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue