Skip to content

Commit

Permalink
Use go install to place dev binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycub committed Apr 24, 2023
1 parent 8b522d1 commit 2e69528
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ hclfmt: ## Format HCL files with hclfmt
@if (git status -s | grep -q -e '\.hcl$$' -e '\.nomad$$' -e '\.tf$$'); then echo the following HCL files are out of sync; git status -s | grep -e '\.hcl$$' -e '\.nomad$$' -e '\.tf$$'; exit 1; fi

.PHONY: dev
dev: GOPATH=$(shell go env GOPATH)
dev:
@echo "==> Building nomad-pack..."
@CGO_ENABLED=0 go build -ldflags $(GO_LDFLAGS) -o ./bin/nomad-pack
@rm -f $(GOPATH)/bin/nomad-pack
@cp ./bin/nomad-pack $(GOPATH)/bin/nomad-pack
@CGO_ENABLED=0 go install -ldflags $(GO_LDFLAGS) .
@echo "==> Done"

pkg/%/nomad-pack: GO_OUT ?= $@
Expand Down

0 comments on commit 2e69528

Please sign in to comment.