wireproxy/Makefile
Wayback Archiver 6fcd53d2a0
Fix tag describe in makefile (#65)
* Fix tag describe in makefile

* Use build directive from makefile
2023-05-09 16:11:37 +01:00

15 lines
311 B
Makefile

export GO ?= go
export CGO_ENABLED = 0
TAG := $(shell git describe --always --tags $(git rev-list --tags --max-count=1) --match v*)
.PHONY: all
all: wireproxy
.PHONY: wireproxy
wireproxy:
${GO} build -trimpath -ldflags "-s -w -X 'main.version=${TAG}'" ./cmd/wireproxy
.PHONY: clean
clean:
${RM} wireproxy