update-external-tags CMAKE target (#395)
authorAlpar Juttner <alpar@cs.elte.hu>
Mon, 25 Oct 2010 16:49:39 +0200
changeset 91209282720100b
parent 911 481496e6d71f
child 914 35ba7236bd67
update-external-tags CMAKE target (#395)
CMakeLists.txt
doc/CMakeLists.txt
doc/Doxyfile.in
     1.1 --- a/CMakeLists.txt	Mon Oct 25 15:33:57 2010 +0200
     1.2 +++ b/CMakeLists.txt	Mon Oct 25 16:49:39 2010 +0200
     1.3 @@ -4,6 +4,7 @@
     1.4  PROJECT(${PROJECT_NAME})
     1.5  
     1.6  INCLUDE(FindPythonInterp)
     1.7 +INCLUDE(FindWget)
     1.8  
     1.9  IF(EXISTS ${PROJECT_SOURCE_DIR}/cmake/version.cmake)
    1.10    INCLUDE(${PROJECT_SOURCE_DIR}/cmake/version.cmake)
     2.1 --- a/doc/CMakeLists.txt	Mon Oct 25 15:33:57 2010 +0200
     2.2 +++ b/doc/CMakeLists.txt	Mon Oct 25 16:49:39 2010 +0200
     2.3 @@ -54,3 +54,15 @@
     2.4    ENDIF()
     2.5  
     2.6  ENDIF()
     2.7 +
     2.8 +IF(WGET_FOUND)
     2.9 +ADD_CUSTOM_TARGET(update-external-tags
    2.10 +  COMMAND ${CMAKE_COMMAND} -E make_directory dl
    2.11 +  # COMMAND ${CMAKE_COMMAND} -E copy libstdc++.tag dl
    2.12 +  COMMAND ${WGET_EXECUTABLE} wget -P dl -N libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
    2.13 +  COMMAND ${CMAKE_COMMAND} -E rename dl/libstdc++.tag libstdc++.tag
    2.14 +  COMMAND ${CMAKE_COMMAND} -E remove dl/libstdc++.tag
    2.15 +  COMMAND ${CMAKE_COMMAND} -E remove_directory dl
    2.16 +  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    2.17 +  )
    2.18 +ENDIF()
     3.1 --- a/doc/Doxyfile.in	Mon Oct 25 15:33:57 2010 +0200
     3.2 +++ b/doc/Doxyfile.in	Mon Oct 25 16:49:39 2010 +0200
     3.3 @@ -225,7 +225,7 @@
     3.4  #---------------------------------------------------------------------------
     3.5  # Options related to the search engine   
     3.6  #---------------------------------------------------------------------------
     3.7 -TAGFILES               = "@abs_top_srcdir@/doc/libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/  "
     3.8 +TAGFILES               = "@abs_top_builddir@/doc/libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/  "
     3.9  GENERATE_TAGFILE       = html/lemon.tag
    3.10  ALLEXTERNALS           = NO
    3.11  EXTERNAL_GROUPS        = NO