diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-15 18:45:33 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-15 18:45:33 +0800 |
commit | 993717127039160835f673e434dcd67b4fff73d0 (patch) | |
tree | 289f0ebe72abe6cf83651ea67e7db4d9a2f2c081 /Makefile | |
parent | Detect static mime type instead of assuming everything's CSS (diff) | |
download | forge-993717127039160835f673e434dcd67b4fff73d0.tar.gz forge-993717127039160835f673e434dcd67b4fff73d0.tar.zst forge-993717127039160835f673e434dcd67b4fff73d0.zip |
Generate VERSION from git describe
Diffstat (limited to '')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,10 @@ -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 |