Print tags in version command

This commit is contained in:
世界
2022-09-14 12:47:30 +08:00
parent 189f02c802
commit 9aa7a20d96
5 changed files with 37 additions and 32 deletions

View File

@@ -1,9 +1,7 @@
NAME = sing-box
COMMIT = $(shell git rev-parse --short HEAD)
TAGS ?= with_quic,with_wireguard,with_clash_api
PARAMS = -v -trimpath -tags '$(TAGS)' -ldflags \
'-X "github.com/sagernet/sing-box/constant.Commit=$(COMMIT)" \
-w -s -buildid='
PARAMS = -v -trimpath -tags '$(TAGS)' -ldflags '-s -w -buildid='
MAIN = ./cmd/sing-box
.PHONY: test release