Submit VERSION and VERSION_DATE when generating the manual page

This commit is contained in:
Sven Geuer 2023-09-27 17:04:22 +02:00
parent 2f733348cc
commit 5888c89a3c

View file

@ -5,6 +5,9 @@ mandir = $(datadir)/man
adoctargets = $(shell echo *.adoc)
htmltargets = $(patsubst %.adoc, %.html, $(adoctargets))
version = $(shell grep ' VERSION ' ../config.h | cut -d'"' -f2)
version_date = $(shell grep ' VERSION_DATE ' ../config.h | cut -d'"' -f2)
docs: proxytunnel.1 $(htmltargets)
install: proxytunnel.1
@ -15,7 +18,7 @@ clean:
rm -f proxytunnel.1 *.html *.xml
%.1.html: %.1.adoc
asciidoc -d manpage $<
asciidoc -d manpage -arevnumber=$(version) -arevdate=$(version_date) $<
%.1: %.1.xml
xmlto man $<
@ -24,4 +27,4 @@ clean:
asciidoc $<
%.1.xml: %.1.adoc
asciidoc -b docbook -d manpage $<
asciidoc -b docbook -d manpage -arevnumber=$(version) -arevdate=$(version_date) $<