Added -trimpath flag. FLAGS var created.
This commit is contained in:
parent
38b427815f
commit
c7773874c5
5
Makefile
5
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user