Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update BUILD to reflect the dev package option
[ric-plt/lib/rmr.git]
/
doc
/
CMakeLists.txt
diff --git
a/doc/CMakeLists.txt
b/doc/CMakeLists.txt
index
44f0001
..
a4be121
100644
(file)
--- a/
doc/CMakeLists.txt
+++ b/
doc/CMakeLists.txt
@@
-1,7
+1,7
@@
#
#==================================================================================
#
#==================================================================================
-# Copyright (c) 2019 Nokia
+# Copyright (c) 2019 Nokia
# Copyright (c) 2018-2019 AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Copyright (c) 2018-2019 AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@
-39,7
+39,7
@@
if( BUILD_DOC )
if( NOT EXISTS ${tfm} ) # not yet built here, pull and build
# pull and build {X}fm tools needed to generate manpages
if( NOT EXISTS ${tfm} ) # not yet built here, pull and build
# pull and build {X}fm tools needed to generate manpages
- execute_process(
+ execute_process(
COMMAND "bash" "-c" "git clone https://github.com/ScottDaniels/xfm.git && cd xfm && mkdir .build && cd .build && cmake .. && make"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
COMMAND "bash" "-c" "git clone https://github.com/ScottDaniels/xfm.git && cd xfm && mkdir .build && cd .build && cmake .. && make"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
@@
-47,7
+47,7
@@
if( BUILD_DOC )
else()
message( "+++ found xfm in the build environment" )
endif()
else()
message( "+++ found xfm in the build environment" )
endif()
-
+
endif()
# base filenames (with .xfm are input)
endif()
# base filenames (with .xfm are input)
@@
-62,6
+62,7
@@
if( BUILD_DOC )
rmr_wh_close.3
rmr_alloc_msg.3
rmr_get_rcvfd.3
rmr_wh_close.3
rmr_alloc_msg.3
rmr_get_rcvfd.3
+ rmr_get_meid.3
rmr_rcv_msg.3
rmr_send_msg.3
rmr_wh_open.3
rmr_rcv_msg.3
rmr_send_msg.3
rmr_wh_open.3
@@
-73,38
+74,46
@@
if( BUILD_DOC )
rmr_support.3
rmr_torcv_msg.3
rmr_wh_send_msg.3
rmr_support.3
rmr_torcv_msg.3
rmr_wh_send_msg.3
+ rmr_get_trace.3
+ rmr_init_trace.3
+ rmr_set_trace.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
)
)
- #
empty list of roff/troff input
files we generated
+ #
initialise lists of
files we generated
set( man3_files )
set( man7_files )
set( man3_files )
set( man7_files )
- # mk is so much easier than this -- grumble
# for each source, build a specific command that runs tfm to generate the
# for each source, build a specific command that runs tfm to generate the
- # troff output
. Sed is needed to remove the leading blank that tfm likes
- # to insert even if indention is 0.
+ # troff output
as a gzipped file. Sed is needed to remove the leading blank
+ # t
hat tfm likes t
o insert even if indention is 0.
#
foreach( nm IN LISTS man_names )
set( out ${CMAKE_BINARY_DIR}/${nm} )
set( in ${CMAKE_SOURCE_DIR}/doc/src/man/${nm}.xfm )
#
foreach( nm IN LISTS man_names )
set( out ${CMAKE_BINARY_DIR}/${nm} )
set( in ${CMAKE_SOURCE_DIR}/doc/src/man/${nm}.xfm )
- add_custom_command(
- OUTPUT ${out}
+ add_custom_command(
+ OUTPUT ${out}
.gz
DEPENDS ${in}
DEPENDS ${in}
- COMMAND bash -c "export LIB=${CMAKE_SOURCE_DIR}/doc/src; ${tfm} ${in} stdout | sed 's/^ //'
>${out}
; ${pfm} ${in} ${out}.ps"
+ COMMAND bash -c "export LIB=${CMAKE_SOURCE_DIR}/doc/src; ${tfm} ${in} stdout | sed 's/^ //'
| gzip >${out}.gz
; ${pfm} ${in} ${out}.ps"
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Building manpage ${out}"
VERBATIM
)
if( ${out} MATCHES ".*\.3" )
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Building manpage ${out}"
VERBATIM
)
if( ${out} MATCHES ".*\.3" )
- list( APPEND man3_files ${out} )
+ list( APPEND man3_files ${out}
.gz
)
else()
else()
- list( APPEND man7_files ${out} )
+ list( APPEND man7_files ${out}
.gz
)
endif()
endforeach()
# we must force these to install
endif()
endforeach()
# we must force these to install
- # find all of the man pages in build and add them to the
deb
+ # find all of the man pages in build and add them to the
package
#
install( FILES ${man3_files} DESTINATION ${install_man}/man3/ )
install( FILES ${man7_files} DESTINATION ${install_man}/man7/ )
#
install( FILES ${man3_files} DESTINATION ${install_man}/man3/ )
install( FILES ${man7_files} DESTINATION ${install_man}/man7/ )
@@
-112,6
+121,6
@@
if( BUILD_DOC )
add_custom_target( man_pages ALL DEPENDS ${man3_files};${man7_files} )
else()
add_custom_target( man_pages ALL DEPENDS ${man3_files};${man7_files} )
else()
- message( "+++ not building doc, set -DBULID_DOC
on cmake command
line to enable" )
+ message( "+++ not building doc, set -DBULID_DOC
=1 on cmake command
line to enable" )
endif()
unset( BUILD_DOC CACHE ) # prevent it from being applied next build unless specifically set on comd line
endif()
unset( BUILD_DOC CACHE ) # prevent it from being applied next build unless specifically set on comd line