From ea5b7d105baa5b71b3d073a0a130b7294b135ca1 Mon Sep 17 00:00:00 2001 From: Andre Kelpe Date: Sat, 5 Dec 2020 23:36:45 +0100 Subject: [PATCH] adds make quick target adds a new target that compiles dsnet w/o running upx for quicker development builds --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 24530d3..ef00875 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ -.PHONY: all build +.PHONY: all build compile quick all: build -build: +compile: CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags="-s -w" -o dist/dsnet ./cmd/dsnet.go + +build: compile upx dist/dsnet +quick: compile + update_deps: # `go mod vendor` initialises vendoring system go get