minor changes

This commit is contained in:
ston1th 2021-09-28 22:33:43 +02:00
commit ba001b4c20
2 changed files with 22 additions and 13 deletions

View file

@ -12,16 +12,16 @@ all: $(PROGRAM)
setup:
$(CC) get -u github.com/client9/misspell
release: clean generate gofmt codeqa
release: clean gofmt codeqa
$(ENV) $(CC) $(BUILD) $(GCFLAGS) $(LDFLAGS) $(CMD)
release-vendor: clean generate gofmt codeqa
$(ENV) $(CC) $(BUILD) -mod=vendor $(GCFLAGS) $(LDFLAGS) $(CMD)
vendor: clean generate gofmt
vendor: clean gofmt
$(ENV) $(CC) $(BUILD) -mod=vendor $(GCFLAGS) $(LDFLAGS) $(CMD)
$(PROGRAM): clean generate gofmt
$(PROGRAM): clean gofmt
$(ENV) $(CC) $(BUILD) $(GCFLAGS) $(LDFLAGS) $(CMD)
clean:
@ -29,9 +29,6 @@ clean:
codeqa: misspell golint test
generate:
$(CC) generate
gofmt:
gofmt -w pkg/ cmd/
@ -39,7 +36,7 @@ golint:
$(GOPATH)/bin/golint .
misspell:
$(GOPATH)/bin/misspell pkg/* cmd/* Makefile README.md vipman.yaml
$(GOPATH)/bin/misspell pkg/* cmd/* Makefile README.md haproxy-lb.yaml
test:
ifeq ($(shell go env GOARCH), $(shell go env GOHOSTARCH))
@ -52,4 +49,4 @@ else
$(info skipping tests of other platforms)
endif
.PHONY: setup release release-vendor vendor build clean codeqa generate gofmt golint misspell test
.PHONY: setup release release-vendor vendor build clean codeqa gofmt golint misspell test