X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2FCMakeLists.txt;h=02c8413e59404d914c7d2c80de413b338598ecb1;hb=8633a0b93e26b619a367de0614437ef2eb4a0b37;hp=27becbdd05107f3004816dc8d0b4ac54174aba9d;hpb=a7610c690a3976e296ca768977e38ceb9aafa5ff;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 27becbd..02c8413 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -77,13 +77,19 @@ if( BUILD_DOC ) rmr_get_trace.3 rmr_init_trace.3 rmr_set_trace.3 + rmr_set_vlevel.3 rmr_tralloc_msg.3 rmr_get_trlen.3 rmr_get_src.3 rmr_mt_call.3 rmr_mt_rcv.3 rmr_get_srcip.3 + rmr_realloc_payload.3 rmr_trace_ref.3 + rmr_set_stimeout.3 + rmr_get_xact.3 + rmr_wh_state.3 + rmr_wh_call.3 ) # initialise lists of files we generated @@ -92,7 +98,9 @@ if( BUILD_DOC ) # for each source, build a specific command that runs tfm to generate the # troff output as a gzipped file. Sed is needed to remove the leading blank - # that tfm likes to insert even if indention is 0. + # that tfm likes to insert even if indention is 0. We also generate postscript + # markdown, plain ascii and rts output which are left in the build directory + # for the developer to use as needed. # foreach( nm IN LISTS man_names ) set( out ${CMAKE_BINARY_DIR}/${nm} ) @@ -101,7 +109,17 @@ if( BUILD_DOC ) add_custom_command( OUTPUT ${out}.gz DEPENDS ${in} - COMMAND bash -c "export LIB=${CMAKE_SOURCE_DIR}/doc/src; ${tfm} ${in} stdout | sed 's/^ //' | gzip >${out}.gz; ${pfm} ${in} ${out}.ps" + COMMAND bash -c "export LIB=${CMAKE_SOURCE_DIR}/doc/src; \ + export OUTPUT_TYPE=troff; \ + ${tfm} ${in} stdout | sed 's/^ //' | gzip >${out}.gz; \ + export OUTPUT_TYPE=rst; \ + ${tfm} ${in} ${out}.rst; \ + export OUTPUT_TYPE=txt; \ + ${tfm} ${in} ${out}.txt; \ + export OUTPUT_TYPE=markdown; \ + ${tfm} ${in} stdout | sed 's/^ //' >${out}.md; \ + export OUTPUT_TYPE=postscript; \ + ${pfm} ${in} ${out}.ps" WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMENT "Building manpage ${out}" VERBATIM