dsnet/Makefile

18 lines
302 B
Makefile
Raw Permalink Normal View History

.PHONY: all build compile quick
2020-05-02 16:46:44 +02:00
all: build
compile:
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
build: compile
2020-05-02 16:46:44 +02:00
upx dist/dsnet
2020-11-29 22:07:40 +01:00
quick: compile
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