Lindenii Project Forge
Login
Commit info
ID4993a2071afad5bc1db6ad117f143a58ae0af8a3
AuthorRunxi Yu<me@runxiyu.org>
Author dateFri, 14 Feb 2025 14:13:47 +0800
CommitterRunxi Yu<me@runxiyu.org>
Committer dateFri, 14 Feb 2025 14:13:47 +0800
Actions
Get patch
Makefile: Make version.go a .PHONY
.PHONY: clean
.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