Skip to content

Commit

Permalink
adds make quick target
Browse files Browse the repository at this point in the history
adds a new target that compiles dsnet w/o running upx for quicker
development builds
  • Loading branch information
fs111 committed Dec 5, 2020
1 parent cf4738d commit ea5b7d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ea5b7d1

Please sign in to comment.