some improvements
This commit is contained in:
parent
3c5be25cb3
commit
58a0dc36d5
25 changed files with 233 additions and 105 deletions
4
Makefile
4
Makefile
|
|
@ -1,7 +1,7 @@
|
|||
CC=go
|
||||
BUILD=build -v
|
||||
VERSION=$(shell cat VERSION)
|
||||
GCFLAGS=-gcflags '-e'
|
||||
GCFLAGS=-gcflags 'all=-e'
|
||||
LDFLAGS=-ldflags '-X main.version=$(VERSION) -s -w'
|
||||
PROGRAM=docstore
|
||||
ENV=CGO_ENABLED=0 GO111MODULE=on
|
||||
|
|
@ -21,7 +21,7 @@ vendor: clean generate gofmt
|
|||
$(ENV) $(CC) $(BUILD) -mod=vendor $(LDFLAGS)
|
||||
|
||||
$(PROGRAM): clean generate gofmt
|
||||
$(ENV) $(CC) $(BUILD) $(LDFLAGS)
|
||||
$(ENV) $(CC) $(BUILD) $(GCFLAGS) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
$(CC) clean -x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue