From: maier Date: Sat, 5 Oct 2013 00:50:10 +0000 (+0000) Subject: Print a detailed info message X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e04b81c5946038748c9315751d5c67cdbe71072d;p=dealii-svn.git Print a detailed info message git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31135 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/README b/deal.II/README index ba6501b3eb..3d878e4de0 100644 --- a/deal.II/README +++ b/deal.II/README @@ -15,7 +15,7 @@ For the impatient: $ make install (alternatively $ make -j install) A detailed ReadME can be found at ./doc/readme.html and - ./doc/development/cmake.html or at http://www.dealii.org/. + ./doc/users/cmake.html or at http://www.dealii.org/. Getting started: @@ -29,5 +29,5 @@ License: Further information: - For further information have a look at ./doc/readme.html or at + For further information have a look at ./doc/index.html or at http://www.dealii.org. diff --git a/deal.II/cmake/setup_custom_targets.cmake b/deal.II/cmake/setup_custom_targets.cmake index 4a8cb3130d..d9031587e4 100644 --- a/deal.II/cmake/setup_custom_targets.cmake +++ b/deal.II/cmake/setup_custom_targets.cmake @@ -50,3 +50,42 @@ FOREACH(_component compat_files documentation examples mesh_converter parameter_ ) ENDIF() ENDFOREACH() + +# +# Provide an "info" target to print a help message: +# + +FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake +"MESSAGE( +\"### +# +# The following targets are available (invoke by $ make ): +# +# all - compiles the library and all enabled components +# clean - removes all generated files +# install - installs into CMAKE_INSTALL_PREFIX +# help - prints a list of valid top level targets +# info - prints this help message +# +# edit_cache - runs ccmake for changing (cached) configuration variables +# and reruns the configure and generate phases of CMake +# rebuild_cache - reruns the configure and generate phases of CMake +# +# compat_files - builds and installs the 'compat_files' component +# documentation - builds and installs the 'documentation' component +# examples - builds and installs the 'examples' component +# library - builds and installs the 'library' component +# mesh_converter - builds and installs the 'mesh_converter' component +# parameter_gui - builds and installs the 'parameter_gui' component +# +# test - runs a minimal set of tests +# +# setup_test - sets up the testsuite subprojects +# clean_test - runs the 'clean' target in every testsuite subproject +# prune_test - removes all testsuite subprojects +# +###\")" + ) +ADD_CUSTOM_TARGET(info + COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake + ) diff --git a/deal.II/cmake/setup_finalize.cmake b/deal.II/cmake/setup_finalize.cmake index 8095e89e2f..8e7fda24ce 100644 --- a/deal.II/cmake/setup_finalize.cmake +++ b/deal.II/cmake/setup_finalize.cmake @@ -262,7 +262,8 @@ FOREACH(_var ${_components}) ENDFOREACH() _summary( - "#\n# Detailed information (compiler flags, feature configuration) can be found in detailed.log\n" +"#\n# Detailed information (compiler flags, feature configuration) can be found in detailed.log +#\n# Run $ make info to print a help messa, or $ make help for a list of top level targets\n" ) _both("#\n###")