Skip to content

Commit

Permalink
remove refs to asciidoc.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
f18m committed Oct 23, 2023
1 parent d319154 commit b5e8970
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
25 changes: 5 additions & 20 deletions CMakeLists.txt
Expand Up @@ -1255,26 +1255,11 @@ endif()
option(WITH_DOCS "Build html docs" ON)
if(WITH_DOCS)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc)
file(
GLOB docs
RELATIVE ${CMAKE_CURRENT_BINARY_DIR}/
"${CMAKE_CURRENT_SOURCE_DIR}/doc/*.txt")
set(html-docs)
foreach(txt ${docs})
string(REGEX REPLACE ".*/(.*)\\.txt" "\\1.html" html ${txt})
set(src ${txt})
set(dst doc/${html})
if(WITH_DOC)
add_custom_command(
OUTPUT ${dst}
COMMAND ${ASCIIDOC_EXECUTABLE} -d manpage -b xhtml11 -f ${CMAKE_CURRENT_SOURCE_DIR}/doc/asciidoc.conf
-azmq_version=${ZMQ_VERSION} -o ${dst} ${src}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${src}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating ${html}")
list(APPEND html-docs ${CMAKE_CURRENT_BINARY_DIR}/${dst})
endif()
endforeach()
add_custom_command(
COMMAND asciidoctor -b html -azmq_version=${ZMQ_VERSION} *.adoc
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${src}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating ${html}")
endif()

if(ZMQ_BUILD_FRAMEWORK)
Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile.am
Expand Up @@ -36,7 +36,7 @@ MAN_HTML =

MAINTAINERCLEANFILES =

EXTRA_DIST = asciidoc.conf $(MAN_ADOC)
EXTRA_DIST = $(MAN_ADOC)

if INSTALL_MAN
MAN_DOC += $(MAN3) $(MAN7)
Expand Down

0 comments on commit b5e8970

Please sign in to comment.