1
0

Added -trimpath flag. FLAGS var created.

This commit is contained in:
Alexander Andreev 2023-03-13 04:47:43 +04:00
parent 38b427815f
commit c7773874c5
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -6,14 +6,15 @@ SYSDDIR:=${SYSDDIR_:/%=%}
DESTDIR:= DESTDIR:=
PREFIX:=/usr/local PREFIX:=/usr/local
LDFLAGS:=-modcacherw -ldflags "-s -w -X main.version=23.10.1" -tags osusergo,netgo FLAGS:=-modcacherw -trimpath
LDFLAGS:= -ldflags "-s -w -X main.version=23.10.1" -tags osusergo,netgo
all: ${TARGET} all: ${TARGET}
.PHONY: ${TARGET} install uninstall install-jade run .PHONY: ${TARGET} install uninstall install-jade run
${TARGET}: ${TARGET}:
go generate web/web.go go generate web/web.go
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go
install-jade: install-jade:
go install github.com/Joker/jade/cmd/jade@latest go install github.com/Joker/jade/cmd/jade@latest