aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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: