bugfixes and updated go.mod
This commit is contained in:
parent
9424084a36
commit
6e317eb08b
300 changed files with 53136 additions and 9719 deletions
25
Makefile
25
Makefile
|
|
@ -4,23 +4,29 @@ VERSION=$(shell cat VERSION)
|
|||
GCFLAGS=-gcflags '-e'
|
||||
LDFLAGS=-ldflags '-X main.version=$(VERSION) -s -w'
|
||||
PROGRAM=gowiki
|
||||
ENV=CGO_ENABLED=0
|
||||
ENV=CGO_ENABLED=0 GO111MODULE=on
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
setup:
|
||||
$(CC) get github.com/client9/misspell
|
||||
$(CC) get -u github.com/client9/misspell
|
||||
|
||||
vendor: clean codeqa
|
||||
$(ENV) $(CC) $(BUILD) -mod=vendor $(LDFLAGS)
|
||||
release: clean generate gofmt codeqa
|
||||
$(ENV) $(CC) $(BUILD) $(GCFLAGS) $(LDFLAGS)
|
||||
|
||||
$(PROGRAM): clean codeqa
|
||||
$(ENV) $(CC) $(BUILD) $(LDFLAGS)
|
||||
release-vendor: clean generate gofmt codeqa
|
||||
$(ENV) $(CC) $(BUILD) -mod=vendor $(GCFLAGS) $(LDFLAGS)
|
||||
|
||||
vendor: clean generate gofmt
|
||||
$(ENV) $(CC) $(BUILD) -mod=vendor $(GCFLAGS) $(LDFLAGS)
|
||||
|
||||
$(PROGRAM): clean generate gofmt
|
||||
$(ENV) $(CC) $(BUILD) $(GCFLAGS) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
$(CC) clean -x
|
||||
|
||||
codeqa: generate gofmt misspell golint test
|
||||
codeqa: misspell golint test
|
||||
|
||||
generate:
|
||||
$(CC) generate
|
||||
|
|
@ -32,8 +38,7 @@ golint:
|
|||
$(GOPATH)/bin/golint .
|
||||
|
||||
misspell:
|
||||
# ignore misspellings from vendor/
|
||||
$(GOPATH)/bin/misspell -i functionallity,avaliable,HALP,halp,agains,becuase,Christiaan,compatiblity,conjuction,frequence,inital,inot,occurance,overriden,pervious,preceeded,preceeds,precendence,PROPOGATE,reamining,represenation,soley,substract,supression,whcih,preceed *
|
||||
$(GOPATH)/bin/misspell pkg/* templates/* main.go Makefile README.md sri.sh templates.sh
|
||||
|
||||
test:
|
||||
ifeq ($(shell go env GOARCH), $(shell go env GOHOSTARCH))
|
||||
|
|
@ -46,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