Commit e08c8a9e authored by PRUVOST Florent's avatar PRUVOST Florent

fix documentation target

parent b2f8628d
########################
# documentation #
########################
......@@ -13,24 +7,18 @@ find_package (Doxygen)
if (DOXYGEN_FOUND)
if (FORTRAN_INTERFACE)
# Generate pampaf-core.h
add_custom_command (OUTPUT pampaf-core_user.h
# Generate pampaf_user.h
add_custom_command (OUTPUT pampaf_user.h
COMMAND ${CMAKE_COMMAND} -E copy
${PAMPA_BINARY_DIR}/src/libpampa/pampaf-core.h ${CMAKE_CURRENT_BINARY_DIR}/pampaf-core_user.h
COMMAND sed -e 's/^!/\\/\\//g' pampaf-core_user.h > ${PAMPA_SOURCE_DIR}/BUILD/pampaf-core.h
DEPENDS ${PAMPA_BINARY_DIR}/src/libpampa/pampaf-core.h)
list (APPEND DOC_DEPENDENCIES pampaf-core_user.h)
${PAMPA_BINARY_DIR}/src/libpampa/pampaf.h ${CMAKE_CURRENT_BINARY_DIR}/pampaf_user.h
COMMAND sed -e 's/^!/\\/\\//g' pampaf_user.h > ${PAMPA_SOURCE_DIR}/BUILD/pampaf.h
DEPENDS ${PAMPA_BINARY_DIR}/src/libpampa/pampaf.h)
list (APPEND DOC_DEPENDENCIES pampaf_user.h)
endif (FORTRAN_INTERFACE)
# Api documentation
file (GLOB API_PAGES ${PAMPA_SOURCE_DIR}/doc/api_pages/*.txt ${PAMPA_SOURCE_DIR}/doc/user_pages/*.txt)
message (STATUS "liste avant: ${API_PAGES}")
list(FILTER API_PAGES EXCLUDE REGEX "user_pages/doc_00_mainpage")
message (STATUS "liste apres: ${API_PAGES}")
list(REMOVE_ITEM API_PAGES "${PAMPA_SOURCE_DIR}/doc/user_pages/doc_00_mainpage.txt")
#add_custom_command (OUTPUT pampa_api.h
# COMMAND ${CMAKE_COMMAND} -E copy
......@@ -52,9 +40,6 @@ if (DOXYGEN_FOUND)
#DEPENDS ${DOC_DEPENDENCIES} pampa_api.h
)
# Pdf api documentation
if (UNIX)
add_custom_target (apipdfdoc
......@@ -73,10 +58,10 @@ if (DOXYGEN_FOUND)
add_custom_command (OUTPUT pampa_user.h
COMMAND ${CMAKE_COMMAND} -E copy
${PAMPA_BINARY_DIR}/src/libpampa/pampa.h ${CMAKE_CURRENT_BINARY_DIR}/pampa_user.h
COMMAND cat ${PAMPA_SOURCE_DIR}/doc/user_pages/*.c >> ${CMAKE_CURRENT_BINARY_DIR}/pampa_user.h
COMMAND cat ${PAMPA_SOURCE_DIR}/doc/user_pages/*.txt >> ${CMAKE_CURRENT_BINARY_DIR}/pampa_user.h
COMMAND ${PAMPA_SOURCE_DIR}/doc/list_examples.sh ${PAMPA_SOURCE_DIR}/src/samples ${CMAKE_CURRENT_BINARY_DIR}/pampa_user.h
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_BINARY_DIR}/pampa_user.h ${PAMPA_SOURCE_DIR}/src/libpampa/pampa.h
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_BINARY_DIR}/pampa_user.h ${PAMPA_SOURCE_DIR}/src/libpampa/pampa.h
DEPENDS ${PAMPA_BINARY_DIR}/src/libpampa/pampa.h ${USER_PAGES})
list (APPEND DOC_DEPENDENCIES pampa_user.h)
......@@ -89,9 +74,6 @@ if (DOXYGEN_FOUND)
WORKING_DIRECTORY ${PAMPA_SOURCE_DIR}/doc
DEPENDS ${DOC_DEPENDENCIES} pampa_user.h)
# Pdf user documentation
if (UNIX)
add_custom_target (userpdfdoc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment