aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-05-11 04:51:32 -0400
committerB. Watson <urchlay@slackware.uk>2025-05-11 04:51:32 -0400
commit9cc91c54f165b81e4a985dea1f665ed368b6dde5 (patch)
tree058b7bb40ba46889b61e5e65e9b5c93b896fbbfa /Makefile
parent7a10f3934fd29ab3ec8b7af21338f5b749c37fa2 (diff)
downloadmarsond-9cc91c54f165b81e4a985dea1f665ed368b6dde5.tar.gz
generate version number in man page so I won't forget to update it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 80a17d3..3ef5129 100644
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,10 @@ $(PROJ): $(PROJ).c usage.c
usage.c: mkusage.pl $(PROJ).8
perl mkusage.pl $(PROJ).rst > usage.c
-$(PROJ).8: $(PROJ).rst
+ver.rst: Makefile
+ echo '.. |version| replace:: $(VERSION)' > ver.rst
+
+$(PROJ).8: $(PROJ).rst ver.rst
rst2man $(PROJ).rst > $(PROJ).8
99-$(PROJ).rules: