adds make quick target
adds a new target that compiles dsnet w/o running upx for quicker development builds
This commit is contained in:
parent
cf4738df59
commit
ea5b7d105b
8
Makefile
8
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user