[doc] CMake: don't quit if txt2tags is not found
Don't return if txt2tags is not found, so that Doxygen-generated man pages can be built.
This commit is contained in:
parent
386c279f6c
commit
c169bcb5d2
|
@ -9,23 +9,23 @@
|
|||
# distributed along with this file, either separately or by replacing
|
||||
# this notice by the COPYRIGHT.t2t file's contents.
|
||||
|
||||
|
||||
set(MAN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/man")
|
||||
add_custom_target(doc ALL true)
|
||||
|
||||
|
||||
### txt2tags manual pages ###
|
||||
|
||||
# Make sure txt2tags is available
|
||||
find_package(Txt2tags)
|
||||
if (NOT TXT2TAGS_FOUND)
|
||||
message(WARNING
|
||||
"Dependency missing to generate OwlPS' documentation: txt2tags")
|
||||
return()
|
||||
endif()
|
||||
"Couldn't find txt2tags: disabling generation of txt2tags-based man pages")
|
||||
else()
|
||||
|
||||
set(PREPROC_MAN ./preproc-man.sh)
|
||||
|
||||
### Man pages ###
|
||||
|
||||
set(MAN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/man")
|
||||
set(PREPROC_MAN ./preproc-man.sh)
|
||||
|
||||
add_custom_target(doc ALL true)
|
||||
|
||||
function(add_manpage PAGENAME SECTION)
|
||||
function(add_manpage PAGENAME SECTION)
|
||||
set(OUTPUT_DIRECTORY "${MAN_OUTPUT_DIRECTORY}/man${SECTION}")
|
||||
set(SOURCE ${PAGENAME}.t2t)
|
||||
set(TARGETNAME ${PAGENAME}.${SECTION})
|
||||
|
@ -50,14 +50,16 @@ function(add_manpage PAGENAME SECTION)
|
|||
|
||||
# Add the target to the "doc" meta-target
|
||||
add_dependencies(doc "${TARGETNAME}")
|
||||
endfunction()
|
||||
endfunction()
|
||||
|
||||
add_manpage(owlps 7)
|
||||
add_manpage(owlps-architecture 7)
|
||||
add_manpage(owlps-deployment 7)
|
||||
add_manpage(owlps-client 1)
|
||||
add_manpage(owlps-listenerd 1)
|
||||
add_manpage(owlps-aggregatord 1)
|
||||
add_manpage(owlps 7)
|
||||
add_manpage(owlps-architecture 7)
|
||||
add_manpage(owlps-deployment 7)
|
||||
add_manpage(owlps-client 1)
|
||||
add_manpage(owlps-listenerd 1)
|
||||
add_manpage(owlps-aggregatord 1)
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
### Doxygen-generated man pages ###
|
||||
|
|
Loading…
Reference in New Issue