]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Print a detailed info message
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 5 Oct 2013 00:50:10 +0000 (00:50 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 5 Oct 2013 00:50:10 +0000 (00:50 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31135 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/README
deal.II/cmake/setup_custom_targets.cmake
deal.II/cmake/setup_finalize.cmake

index ba6501b3eb0d41b4ff694ecc2bcd69da59b43d35..3d878e4de05267b14fd4e2b427fc4a405c9a972f 100644 (file)
@@ -15,7 +15,7 @@ For the impatient:
   $ make install    (alternatively $ make -j<N> 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.
index 4a8cb3130de8d3b2194cc969f6f90bf52f9eb912..d9031587e46e3ee0bfa20e8baf864ce008db5c78 100644 (file)
@@ -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 <target>):
+#
+#    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
+  )
index 8095e89e2f3d2be583c62b5d58552237af5d2cbf..8e7fda24ce6a0e4037163f71595159c18f6679b7 100644 (file)
@@ -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###")

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.