Lindenii Project Forge
Generate VERSION from git describe
/forge
/templates.ha
/.templates.ha /.version.ha
forge: templates.ha *.ha
forge: .version.ha .templates.ha *.ha
hare build $(HAREFLAGS) -o $@ .
templates.ha: templates/*.htmpl
.templates.ha: templates/*.htmpl
htmplgen -o $@ $^
.version.ha: printf 'def VERSION="%s";\n' $(shell git describe --tags --always --dirty) > $@ .PHONY: version.ha
let global: struct { title: str, version: str, ssh_pubkey: str, ssh_fp: str, } = struct { title: str = "Test Forge",
version: str = "v0.0.0",
version: str = VERSION,
ssh_pubkey: str = "pubkey", ssh_fp: str = "fp", };