32 lines
956 B
Diff
32 lines
956 B
Diff
diff -uNr LiteSpeedTest-0.11.2/Makefile LiteSpeedTest-0.11.2.mod/Makefile
|
|
--- LiteSpeedTest-0.11.2/Makefile 2022-08-13 09:00:15.000000000 +0800
|
|
+++ LiteSpeedTest-0.11.2.mod/Makefile 2022-08-13 16:18:54.116696305 +0800
|
|
@@ -1,6 +1,5 @@
|
|
NAME=lite
|
|
BINDIR=bin
|
|
-VERSION=$(shell git describe --tags || echo "unknown version")
|
|
BUILDTIME=$(shell date -u)
|
|
GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/xxf098/LiteSpeedTest/constant.Version=$(VERSION)" \
|
|
-X "github.com/xxf098/LiteSpeedTest/constant.BuildTime=$(BUILDTIME)" \
|
|
@@ -27,10 +26,8 @@
|
|
windows-arm64 \
|
|
windows-arm32v7
|
|
|
|
-all: linux-amd64 darwin-amd64 windows-amd64 # Most used
|
|
-
|
|
-docker:
|
|
- $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
|
+all:
|
|
+ $(GOBUILD) -o $(BINDIR)/$(NAME)
|
|
|
|
darwin-amd64:
|
|
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
|
@@ -128,4 +125,5 @@
|
|
GOOS=freebsd golangci-lint run ./...
|
|
|
|
clean:
|
|
- rm $(BINDIR)/*
|
|
\ No newline at end of file
|
|
+ rm $(BINDIR)/*
|
|
+
|