mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
chore: Build improvements (#1079)
This commit is contained in:
parent
b5d99c7b14
commit
d64d33a7f9
4 changed files with 36 additions and 13 deletions
3
Makefile
3
Makefile
|
|
@ -1,6 +1,7 @@
|
|||
.PHONY: clean checks test build image e2e fmt
|
||||
|
||||
export GO111MODULE=on
|
||||
export CGO_ENABLED=0
|
||||
|
||||
SRCS = $(shell git ls-files '*.go' | grep -v '^vendor/')
|
||||
|
||||
|
|
@ -21,7 +22,7 @@ clean:
|
|||
|
||||
build: clean
|
||||
@echo Version: $(VERSION)
|
||||
go build -v -ldflags '-X "main.version=${VERSION}"' -o ${BIN_OUTPUT} ${MAIN_DIRECTORY}
|
||||
go build -v -trimpath -ldflags '-X "main.version=${VERSION}"' -o ${BIN_OUTPUT} ${MAIN_DIRECTORY}
|
||||
|
||||
image:
|
||||
@echo Version: $(VERSION)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue