aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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