X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bbb34abf53d0fad71c3276985e1c7c8ab526f15d..3b05d316a902d685ea3302273da3b7cf7e018594:/buildtools/Cmake/src/CMakeMaintainerMode.txt diff --git a/buildtools/Cmake/src/CMakeMaintainerMode.txt b/buildtools/Cmake/src/CMakeMaintainerMode.txt index f71d198791..560b7c2730 100644 --- a/buildtools/Cmake/src/CMakeMaintainerMode.txt +++ b/buildtools/Cmake/src/CMakeMaintainerMode.txt @@ -109,19 +109,12 @@ if(PERL_EXE) #$(TEST_UNITS): $(TEST_CFILES) string(REPLACE ";" " " USE_TEST_CFILES "${TEST_CFILES}") + exec_program("chmod a=rwx ${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl" "${PROJECT_DIRECTORY}/src/") exec_program("${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl ${USE_TEST_CFILES}" "${PROJECT_DIRECTORY}/src/") #@builddir@/simgrid_units_main.c: $(TEST_UNITS) exec_program("${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl ${PROJECT_DIRECTORY}/src/xbt/cunit.c" "${PROJECT_DIRECTORY}/src/") - #clean-units: - foreach(file ${TEST_UNITS}) - exec_program("echo ${file}|sed -e 's|.c$$|.Po|' -e 's|[^/]*/||' -e 's|^|.deps/|'" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE dep) - exec_program("echo \"Removing dependency tracker of ${file} (${dep} ${PROJECT_DIRECTORY}/src/${dep})\"" OUTPUT_VARIABLE OKITOKI) - message("${OKITOKI}") - exec_program("rm -vf ${dep} ${PROJECT_DIRECTORY}/src/${dep}" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE OKITOKI) - exec_program("touch ${dep}" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE OKITOKI) - endforeach(file ${TEST_UNITS}) else(PERL_EXE) message(FATAL_ERROR "Install perl before use maintainer mode") endif(PERL_EXE) @@ -129,6 +122,7 @@ message("") message("________________________________________________________________________________") message("________________________________________________________________________________ SG_UNIT_EXTRACTOR END") +#Those lines permit to remake a cmake configure if "sources to look" have been changed foreach(file ${SRC_TO_LOOK}) configure_file(${file} ${file} COPYONLY) endforeach(file ${SRC_TO_LOOK})