mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Updated Makefile to include GOPATH in some targets
This commit is contained in:
parent
5a2356d7c2
commit
128f9ad42d
1 changed files with 4 additions and 3 deletions
7
Makefile
7
Makefile
|
|
@ -13,6 +13,7 @@ $(error VERSION is not set. Please review and copy config.env.default to config
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
|
GOPATH ?= $(shell echo $${GOPATH:-~/go})
|
||||||
|
|
||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
@ -50,7 +51,7 @@ inst: ## go install tools
|
||||||
.PHONY: goreleaser
|
.PHONY: goreleaser
|
||||||
release: ## goreleaser build
|
release: ## goreleaser build
|
||||||
$(call print-target)
|
$(call print-target)
|
||||||
goreleaser build --clean --single-target --snapshot
|
$(GOPATH)/bin/goreleaser build --clean --single-target --snapshot
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: ## goreleaser build
|
build: ## goreleaser build
|
||||||
|
|
@ -65,12 +66,12 @@ container:
|
||||||
.PHONY: spell
|
.PHONY: spell
|
||||||
spell: ## misspell
|
spell: ## misspell
|
||||||
$(call print-target)
|
$(call print-target)
|
||||||
misspell -error -locale=US -w **.md
|
$(GOPATH)/bin/misspell -error -locale=US -w **.md
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: ## golangci-lint
|
lint: ## golangci-lint
|
||||||
$(call print-target)
|
$(call print-target)
|
||||||
golangci-lint run --fix
|
$(GOPATH)/bin/golangci-lint run --fix
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: ## go test
|
test: ## go test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue