From afe18e86a7aa2248c69997ed941bcbe3e6b2a655 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 29 Oct 2019 16:51:07 +0100 Subject: switch to go.mod --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 19818f8..8d9903d 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ APPLETS = i3status rtree prettyprompt all: build/gofu $(addprefix build/,$(APPLETS)) +# NOTE: This repo uses Go modules, and uses a synthetic GOPATH at +# $(CURDIR)/.gopath that is only used for the build cache. $GOPATH/src/ is +# empty. GO = GOPATH=$(CURDIR)/.gopath GOBIN=$(CURDIR)/build go GO_BUILDFLAGS = GO_LDFLAGS = -s -w @@ -48,6 +51,7 @@ build/cover.html: build/cover.out $(GO) tool cover -html $< -o $@ vendor: FORCE - golangvend + $(GO) mod tidy + $(GO) mod vendor .PHONY: FORCE -- cgit v1.3.1