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