Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Put a warn if try to make a dist without maintainer mode
[simgrid.git] / buildtools / Cmake / Distrib.cmake
index df8b2ee..6ef4705 100644 (file)
@@ -174,6 +174,49 @@ endif(HAVE_LUA)
 ##   (instead of any cruft laying on my disk as CPack does)  ###
 ################################################################
 
+# This is the complete list of what will be added to the source archive
+set(source_to_pack  
+  ${headers_to_install}
+  ${source_of_generated_headers}
+  ${XBT_RL_SRC}
+  ${EXTRA_DIST}
+  ${SMPI_SRC}
+  ${GRAS_RL_SRC}
+  ${XBT_SRC}
+  ${GTNETS_SRC}
+  ${NS3_SRC}
+  ${SURF_SRC}
+  ${SIMIX_SRC}
+  ${TRACING_SRC}
+  ${MSG_SRC}
+  ${SIMDAG_SRC}
+  ${GRAS_COMMON_SRC}
+  ${GRAS_SG_SRC}
+  ${AMOK_SRC}
+  ${LUA_SRC}
+  ${MC_SRC}
+  ${JEDULE_SRC}
+  ${RNGSTREAM_SRC}
+  ${BINDINGS_FILES}
+  ${CMAKE_SOURCE_FILES}
+  ${EXAMPLES_CMAKEFILES_TXT}
+  ${TESHSUITE_CMAKEFILES_TXT}
+  ${TOOLS_CMAKEFILES_TXT}
+  ${TESTSUITE_CMAKEFILES_TXT}
+  ${DOC_SOURCES}
+  ${DOC_FIGS}
+  ${README_files}
+  ${xml_files}
+  ${tesh_files}
+  ${txt_files}
+  ${bin_files}
+  ${examples_src}
+  ${teshsuite_src}
+  ${tools_src}
+  ${testsuite_src}
+  ${PLATFORMS_EXAMPLES}
+)
+
 ##########################################
 ### Fill in the "make dist-dir" target ###
 ##########################################
@@ -225,6 +268,7 @@ endforeach(file ${source_to_pack})
 add_custom_target(dist
   DEPENDS ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-${release_version}.tar.gz
 )
+
 add_custom_command(
        OUTPUT ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-${release_version}.tar.gz    
        COMMENT "Compressing the archive from the distribution directory"
@@ -234,6 +278,15 @@ add_custom_command(
 )
 add_dependencies(dist dist-dir)
 
+if(NOT enable_maintainer_mode)
+  add_custom_target(echo-dist
+    COMMAND ${CMAKE_COMMAND} -E echo "WARNING: ----------------------------------------------------"
+    COMMAND ${CMAKE_COMMAND} -E echo "WARNING: Distrib is generated without option maintainer mode "
+    COMMAND ${CMAKE_COMMAND} -E echo "WARNING: ----------------------------------------------------"
+  )
+   add_dependencies(dist echo-dist)
+endif(NOT enable_maintainer_mode)
+
 ###########################################
 ### Fill in the "make distcheck" target ###
 ###########################################