Switch version.txt target to use go generate

This commit is contained in:
Elara 2022-11-22 03:23:14 +00:00
parent 2c733edeec
commit f3f66176b8

View File

@ -25,6 +25,6 @@ uninstall:
rm $(CFG_PREFIX)/itd.toml
version.txt:
printf "r%s.%s" "$(shell git rev-list --count HEAD)" "$(shell git rev-parse --short HEAD)" > version.txt
go generate
.PHONY: all clean install uninstall