forked from osmocom/wireshark
Docs: Fix our man page dependencies.
Dependencies need to be set via add_custom_command.
This commit is contained in:
parent
8015762319
commit
6857e1ed04
|
@ -75,6 +75,7 @@ if(ASCIIDOCTOR_EXECUTABLE)
|
||||||
--out-file ${_output_xml}
|
--out-file ${_output_xml}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
${CMAKE_SOURCE_DIR}/docbook/attributes.adoc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
${ARGN}
|
${ARGN}
|
||||||
)
|
)
|
||||||
|
@ -106,6 +107,7 @@ if(ASCIIDOCTOR_EXECUTABLE)
|
||||||
--out-file ${_output_html}
|
--out-file ${_output_html}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
${CMAKE_SOURCE_DIR}/docbook/attributes.adoc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
${ARGN}
|
${ARGN}
|
||||||
)
|
)
|
||||||
|
@ -126,6 +128,8 @@ if(ASCIIDOCTOR_EXECUTABLE)
|
||||||
${_output_html}
|
${_output_html}
|
||||||
> ${_output_txt}
|
> ${_output_txt}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
${MAN_INCLUDES}
|
||||||
|
${CMAKE_SOURCE_DIR}/docbook/attributes.adoc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
${_output_html}
|
${_output_html}
|
||||||
${ARGN}
|
${ARGN}
|
||||||
|
@ -152,6 +156,8 @@ if(ASCIIDOCTOR_EXECUTABLE)
|
||||||
--destination-dir ${CMAKE_CURRENT_BINARY_DIR}
|
--destination-dir ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${_input_adoc}
|
${_input_adoc}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
${MAN_INCLUDES}
|
||||||
|
${CMAKE_SOURCE_DIR}/docbook/attributes.adoc
|
||||||
${_input_adoc}
|
${_input_adoc}
|
||||||
)
|
)
|
||||||
unset(_src_file)
|
unset(_src_file)
|
||||||
|
@ -177,6 +183,8 @@ if(ASCIIDOCTOR_EXECUTABLE)
|
||||||
--destination-dir ${CMAKE_CURRENT_BINARY_DIR}
|
--destination-dir ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${_input_adoc}
|
${_input_adoc}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
${MAN_INCLUDES}
|
||||||
|
${CMAKE_SOURCE_DIR}/docbook/attributes.adoc
|
||||||
${_input_adoc}
|
${_input_adoc}
|
||||||
)
|
)
|
||||||
unset(_src_file)
|
unset(_src_file)
|
||||||
|
@ -221,6 +229,7 @@ if(ASCIIDOCTOR_EXECUTABLE)
|
||||||
--out-file "${_output_pdf}"
|
--out-file "${_output_pdf}"
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
${CMAKE_SOURCE_DIR}/docbook/attributes.adoc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
${ARGN}
|
${ARGN}
|
||||||
VERBATIM
|
VERBATIM
|
||||||
|
@ -271,6 +280,7 @@ if(ASCIIDOCTOR_EXECUTABLE)
|
||||||
--out-file "${_output_epub}"
|
--out-file "${_output_epub}"
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
${CMAKE_SOURCE_DIR}/docbook/attributes.adoc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
${CMAKE_CURRENT_SOURCE_DIR}/${_asciidocsource}
|
||||||
${ARGN}
|
${ARGN}
|
||||||
VERBATIM
|
VERBATIM
|
||||||
|
|
|
@ -97,7 +97,6 @@ if(ASCIIDOCTOR_FOUND)
|
||||||
ASCIIDOCTOR2HTMLMAN(${MAN1_SOURCE_FILES} ${MAN4_SOURCE_FILES})
|
ASCIIDOCTOR2HTMLMAN(${MAN1_SOURCE_FILES} ${MAN4_SOURCE_FILES})
|
||||||
|
|
||||||
add_custom_target(manpages DEPENDS
|
add_custom_target(manpages DEPENDS
|
||||||
${MAN_INCLUDES}
|
|
||||||
${MAN1_INSTALL_FILES}
|
${MAN1_INSTALL_FILES}
|
||||||
${MAN4_INSTALL_FILES}
|
${MAN4_INSTALL_FILES}
|
||||||
)
|
)
|
||||||
|
@ -108,7 +107,6 @@ add_custom_target(
|
||||||
docs ALL
|
docs ALL
|
||||||
DEPENDS
|
DEPENDS
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/AUTHORS-SHORT
|
${CMAKE_CURRENT_BINARY_DIR}/AUTHORS-SHORT
|
||||||
${MAN_INCLUDES}
|
|
||||||
${MAN1_INSTALL_FILES}
|
${MAN1_INSTALL_FILES}
|
||||||
${MAN4_INSTALL_FILES}
|
${MAN4_INSTALL_FILES}
|
||||||
${HTML_INSTALL_FILES}
|
${HTML_INSTALL_FILES}
|
||||||
|
|
Loading…
Reference in New Issue