commit da46ee0106f60c1c02f1c6427192f06d1e19cb2c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Sep 13 14:44:42 2024 -0500
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Jul 2 08:24:12 2025 +0200
man/Makefile.am: Invoke docgen with `-v` option
...to embed the package version in man page templates that use
`@VERSION@`. (None do, yet.)
---
man/Makefile.am | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/man/Makefile.am b/man/Makefile.am
index 66567e07..2e1e0474 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -63,7 +63,10 @@ CLEANFILES = $(GENERATED_MAN_PAGES) $(SETUP_MAN_PAGES) \
$(doomdocs_DATA) $(hereticdocs_DATA) \
$(hexendocs_DATA) $(strifedocs_DATA)
DOCGEN = $(srcdir)/docgen
-DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" -z "@PACKAGE_SHORTNAME@"
+DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" \
+ -s "@PACKAGE_NAME@" \
+ -z "@PACKAGE_SHORTNAME@" \
+ -v "@VERSION@"
@PROGRAM_PREFIX@doom.6: $(top_srcdir)/src $(MANPAGE_GEN_FILES)
$(DOCGEN) $(DOCGEN_COMMON_ARGS) \