mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Fix installation of man pages from tarball
Install man pages from tar ball The generated man pages are already present in the tar ball. Simply install those then, even if Asciidoctor is not present. Optimize CMake files. Closes #620 Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
278f2b065c
commit
861f091bbb
3 changed files with 37 additions and 30 deletions
|
@ -8,12 +8,9 @@ add_subdirectory (themes)
|
|||
if (ASCIIDOCTOR_FOUND)
|
||||
set (ASCIIDOCTOR_OPTIONS "--attribute=manmanual=User Manuals"
|
||||
"--attribute=mansource=timew ${PROJECT_VERSION}")
|
||||
|
||||
add_subdirectory (man1)
|
||||
add_subdirectory (man7)
|
||||
|
||||
add_custom_target (doc ALL DEPENDS man1 man7)
|
||||
else (ASCIIDOCTOR_FOUND)
|
||||
add_custom_target (doc ALL
|
||||
COMMAND echo "Tool 'asciidoctor' is required to generate man pages! Please install it first.")
|
||||
endif (ASCIIDOCTOR_FOUND)
|
||||
|
||||
add_subdirectory (man1)
|
||||
add_subdirectory (man7)
|
||||
|
||||
add_custom_target (doc ALL DEPENDS man1 man7)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue