mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Submit VERSION and VERSION_DATE when generating the manual page
This commit is contained in:
parent
2f733348cc
commit
5888c89a3c
1 changed files with 5 additions and 2 deletions
|
|
@ -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) $<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue