Lindenii Project Forge
Login

server

Lindenii Forge’s main backend daemon
Commit info
ID
993717127039160835f673e434dcd67b4fff73d0
Author
Runxi Yu <me@runxiyu.org>
Author date
Sat, 15 Mar 2025 18:45:33 +0800
Committer
Runxi Yu <me@runxiyu.org>
Committer date
Sat, 15 Mar 2025 18:45:33 +0800
Actions
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",
};