aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 366a154..b839c7d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
.PHONY: clean version.go
forge: $(filter-out forge,$(wildcard *)) version.go
+ go mod vendor
go build -o $@
+ $(RM) -r vendor
version.go:
printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --long --always --dirty) > $@