Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove old trace files and add a picture for distrib.
[simgrid.git] / buildtools / Cmake / Distrib.cmake
index c1d81c1..d12a638 100644 (file)
@@ -14,6 +14,17 @@ install(DIRECTORY "${CMAKE_HOME_DIRECTORY}/doc/html/"
   PATTERN "*~" EXCLUDE
 )
 
+#### Generate the manpages
+if( NOT MANPAGE_DIR )
+       set( MANPAGE_DIR $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/man/share/man/man1 )
+endif( NOT MANPAGE_DIR)
+
+add_custom_target(TARGET install
+        COMMAND ${CMAKE_COMMAND} -E make_directory ${MANPAGE_DIR}
+       COMMAND pod2man tools/simgrid_update_xml.pl > ${MANPAGE_DIR}/simgrid_update_xml.1
+       COMMENT "Generating manpages"
+)
+
 # binaries
 install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/smpicc
                  ${CMAKE_BINARY_DIR}/bin/smpif2c