Merge pull request #32 from fs111/make-quick

adds make quick target
This commit is contained in:
Callan Bryant 2020-12-08 08:59:42 +00:00 committed by GitHub
commit e719f111f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,15 @@
.PHONY: all build .PHONY: all build compile quick
all: build all: build
build: compile:
CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags="-s -w" -o dist/dsnet ./cmd/dsnet.go CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags="-s -w" -o dist/dsnet ./cmd/dsnet.go
build: compile
upx dist/dsnet upx dist/dsnet
quick: compile
update_deps: update_deps:
# `go mod vendor` initialises vendoring system # `go mod vendor` initialises vendoring system
go get go get