aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 366a1542a21fcc1f755223c1d9fc73b01bf473f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
.PHONY: clean version.go

forge: $(filter-out forge,$(wildcard *)) version.go
	go build -o $@

version.go:
	printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --long --always --dirty) > $@

clean:
	$(RM) forge version.go