From c7773874c51ff730bca4d3d086680a7645fc9f73 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 13 Mar 2023 04:47:43 +0400 Subject: [PATCH] Added -trimpath flag. FLAGS var created. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6359ca3..076ea7e 100755 --- a/Makefile +++ b/Makefile @@ -6,14 +6,15 @@ SYSDDIR:=${SYSDDIR_:/%=%} DESTDIR:= 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} .PHONY: ${TARGET} install uninstall install-jade run ${TARGET}: go generate web/web.go - go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go + go build -o bin/$@ ${LDFLAGS} ${FLAGS} cmd/$@/main.go install-jade: go install github.com/Joker/jade/cmd/jade@latest