Added some necessary flags for go build.
This commit is contained in:
parent
e7e45259ba
commit
82915fb300
5
Makefile
5
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user