add Makefile

This commit is contained in:
octeep authored and octeep committed 2022-09-01 19:06:20 +08:00
1 parent 41f2d96f04
commit 2d53f675af
3 files changed
+15 -2

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
export GO ?= go
.PHONY: all
all: wireproxy
.PHONY: wireproxy
wireproxy:
tag="$$(git describe --tag 2>/dev/null)" && \
${GO} build -ldflags "-X 'main.version=$$tag'" ./cmd/wireproxy
.PHONY: clean
clean:
${RM} wireproxy