mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
7dc59950a5
commit
e8543008c0
@ -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}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user