Manpage generation tweaks

- depend on gnc-vcs-info.h file directly instead of the gnc-vcs-info target
  The latter won't cause gnucash to update the manpage in case gnc-vcs-info.h changes,
  the former does.
- use GNC_VCS_REV as version instead of the static VERSION parameter
This commit is contained in:
Geert Janssens 2019-08-24 17:21:32 +02:00
parent 7dc59950a5
commit e8543008c0
2 changed files with 2 additions and 3 deletions

View File

@ -55,10 +55,9 @@ file(COPY ${CMAKE_CURRENT_BINARY_DIR}/tip_of_the_day.list
DESTINATION ${DATADIR_BUILD}/gnucash) DESTINATION ${DATADIR_BUILD}/gnucash)
add_custom_command(OUTPUT gnucash.1 add_custom_command(OUTPUT gnucash.1
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gnucash.1.in gnc-vcs-info DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gnucash.1.in ${VCS_INFO_FILE}
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/gnucash.1.in COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/gnucash.1.in
-D DST=gnucash.1 -D DST=gnucash.1
-D VERSION=${VERSION}
-D VCS_INFO_FILE=${VCS_INFO_FILE} -D VCS_INFO_FILE=${VCS_INFO_FILE}
-D DATADIR_BUILD=${DATADIR_BUILD} -D DATADIR_BUILD=${DATADIR_BUILD}
-D SRC_DIR=${CMAKE_SOURCE_DIR} -D SRC_DIR=${CMAKE_SOURCE_DIR}

View File

@ -2,7 +2,7 @@
.\" Process this file with .\" Process this file with
.\" groff -man -Tascii foo.1 .\" groff -man -Tascii foo.1
.\" .\"
.TH GNUCASH 1 "@GNC_VCS_REV_DATE@" "Version @VERSION@" "GnuCash Manual Pages" .TH GNUCASH 1 "@GNC_VCS_REV_DATE@" "Version @GNC_VCS_REV@" "GnuCash Manual Pages"
.SH NAME .SH NAME
gnucash \- personal finance manager gnucash \- personal finance manager
.SH SYNOPSIS .SH SYNOPSIS