dsnet/Makefile

14 lines
254 B
Makefile
Raw Normal View History

2020-05-02 16:46:44 +02:00
.PHONY: all build
all: build
build:
2020-11-29 22:07:40 +01:00
CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags="-s -w" -o dist/dsnet ./cmd/dsnet.go
2020-05-02 16:46:44 +02:00
upx dist/dsnet
2020-11-29 22:07:40 +01:00
update_deps:
# `go mod vendor` initialises vendoring system
go get
go mod vendor
git add -f vendor