Uniform behavior for 'make man' and 'make html'
[alexxy/gromacs.git] / CPackInit.cmake
index 85dc5a749100b2b80a342f92ef527704fecfecb5..122c751638ac86995d8c7a51421d1bf52a02eddf 100644 (file)
 #TODO: add check that source doesn't contain any untracked files
 if(CPACK_SOURCE_PACKAGE_FILE_NAME) #building source package
     get_filename_component(CMAKE_BINARY_DIR ${CPACK_OUTPUT_CONFIG_FILE} PATH)
-    if(NOT EXISTS "${CMAKE_BINARY_DIR}/share/man/man1/gmx-view.1")
+    if (NOT EXISTS "${CMAKE_BINARY_DIR}/share/man/man1/gmx-view.1" OR
+        NOT EXISTS "${CMAKE_BINARY_DIR}/share/html/final/online.html")
         message(FATAL_ERROR
-            "To create a complete source package all man pages need to be generated. "
-            "You need to run 'make man' or set GMX_BUILD_MANPAGES=ON to get "
+            "To create a complete source package all man and HTML pages need "
+            "to be generated. "
+            "You need to run 'make man html' or set GMX_BUILD_HELP=ON to get "
             "them automatically built together with the binaries.")
     endif()
 endif()