dsnet/Makefile
2020-11-29 21:07:40 +00:00

14 lines
254 B
Makefile

.PHONY: all build
all: build
build:
CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags="-s -w" -o dist/dsnet ./cmd/dsnet.go
upx dist/dsnet
update_deps:
# `go mod vendor` initialises vendoring system
go get
go mod vendor
git add -f vendor