diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,2 +1,10 @@ -forge: main.ha - hare build -o $@ $^ +forge: .version.ha .templates.ha *.ha + hare build $(HAREFLAGS) -o $@ . + +.templates.ha: templates/*.htmpl + htmplgen -o $@ $^ + +.version.ha: + printf 'def VERSION="%s";\n' $(shell git describe --tags --always --dirty) > $@ + +.PHONY: version.ha |