1
0

Added some necessary flags for go build.

This commit is contained in:
Alexander Andreev 2023-08-05 06:01:10 +04:00
parent e7e45259ba
commit 82915fb300
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -7,6 +7,7 @@ DESTDIR=/
VERSION=23.31.0
FLAGS=-trimpath -mod=readonly -modcacherw -buildmode=pie
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
all: web/*.jade.go ${TARGET}
@ -14,8 +15,8 @@ all: web/*.jade.go ${TARGET}
.PHONY: ${TARGET}
${TARGET}:
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
go build -o bin/$@-clean ${LDFLAGS} cmd/$@-clean/main.go
go build -o bin/$@ ${FLAGS} ${LDFLAGS} cmd/$@/main.go
go build -o bin/$@-clean ${FLAGS} ${LDFLAGS} cmd/$@-clean/main.go
web/*.jade.go: web/templates/*.jade
go install github.com/Joker/jade/cmd/jade@latest