Rename reference checksum generating target
authorSzilárd Páll <pall.szilard@gmail.com>
Fri, 1 Nov 2019 10:27:33 +0000 (11:27 +0100)
committerPaul Bauer <paul.bauer.q@gmail.com>
Fri, 1 Nov 2019 13:41:59 +0000 (14:41 +0100)
Target name change to better match the intent, also improved status
message to make it clear which checksum it is generating.

Change-Id: Ie713e7d3ecd5af480d13689e50871d7689611592

admin/builds/source-package.py
cmake/gmxVersionInfo.cmake

index 58e80fa263fda8582a59557b1d0a0e9e0c13ed4f..f3d52e0c09b31815659464126459b32015085a97 100644 (file)
@@ -54,7 +54,7 @@ def do_build(context):
     context.build_target(target='man')
     context.build_target(target='completion')
     context.build_target(target='install-guide')
-    context.build_target(target='checksum-files')
+    context.build_target(target='reference_checksum')
 
     context.build_target(target='package_source')
 
index a604a04b77c39cd9340febf316d3726d9b8a382a..606779f4f6eb20e46eb6711968a31f400d220eb1 100644 (file)
@@ -459,20 +459,20 @@ set(CHECKSUM_FILE "${PROJECT_SOURCE_DIR}/src/reference_checksum")
 # Note: The RUN_ALWAYS here is to regenerate the hash file only, it does not
 # mean that the target is run in all builds
 if (PYTHONINTERP_FOUND)
-    gmx_add_custom_output_target(checksum-files RUN_ALWAYS
+    gmx_add_custom_output_target(reference_checksum RUN_ALWAYS
         OUTPUT ${CHECKSUM_FILE}
         COMMAND ${PYTHON_EXECUTABLE}
             ${PROJECT_SOURCE_DIR}/admin/createFileHash.py
             -s ${SET_OF_DIRECTORIES_TO_CHECKSUM}
             -o ${CHECKSUM_FILE}
         WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
-        COMMENT "Generating checksum of source files")
+        COMMENT "Generating reference checksum of source files")
 else()
-    add_custom_target(checksum-files
+    add_custom_target(reference_checksum
         COMMAND ${CMAKE_COMMAND} -E echo
         "Can not checksum files without python being available"
         WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
-        COMMENT "Generating checksum of source files")
+        COMMENT "Generating reference checksum of source files")
 endif()
 
 # The main user-visible interface to the machinery.