fix Makefile
This commit is contained in:
parent
5e38debcfd
commit
a30c524fa4
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
bin
|
4
Makefile
4
Makefile
@ -1,7 +1,7 @@
|
|||||||
NAME = kf2-antiddos
|
NAME = kf2-antiddos
|
||||||
VERSION := $(shell git describe)
|
VERSION := $(shell git describe)
|
||||||
GOCMD = go
|
GOCMD = go
|
||||||
LDFLAGS := "$(LDFLAGS) -s -w -X 'main.Version=$(VERSION)'"
|
LDFLAGS := "$(LDFLAGS) -s -w -X 'main.AppVersion=$(VERSION)'"
|
||||||
GOBUILD = $(GOCMD) build -ldflags=$(LDFLAGS)
|
GOBUILD = $(GOCMD) build -ldflags=$(LDFLAGS)
|
||||||
SRCMAIN = ./cmd/$(NAME)
|
SRCMAIN = ./cmd/$(NAME)
|
||||||
SRCDOC = ./doc
|
SRCDOC = ./doc
|
||||||
@ -35,7 +35,7 @@ linux-amd64: prep
|
|||||||
windows-amd64: prep
|
windows-amd64: prep
|
||||||
GOOS=windows GOARCH=amd64 $(GOBUILD) -o $(BIN)-windows-amd64.exe $(SRCMAIN)
|
GOOS=windows GOARCH=amd64 $(GOBUILD) -o $(BIN)-windows-amd64.exe $(SRCMAIN)
|
||||||
|
|
||||||
compile: linux-386 windows-386 linux-amd64 windows-amd64
|
compile: linux-amd64 windows-amd64
|
||||||
|
|
||||||
install: check-build doc
|
install: check-build doc
|
||||||
install -m 755 -d $(PREFIX)/bin/
|
install -m 755 -d $(PREFIX)/bin/
|
||||||
|
Loading…
Reference in New Issue
Block a user