Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some make command were unvailable if they were launch out of project Directory. Now...
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 15 Apr 2010 10:12:34 +0000 (10:12 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 15 Apr 2010 10:12:34 +0000 (10:12 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7590 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/src/CMakeDistrib.txt

index 1a76c57..8f8807b 100644 (file)
@@ -147,18 +147,18 @@ WORKING_DIRECTORY "${PROJECT_DIRECTORY}/buildtools/Cmake/src/doc"
 
 add_custom_target(dist
 COMMAND make package
 
 add_custom_target(dist
 COMMAND make package
-COMMAND rm -rf ${PROJECT_DIRECTORY}/_CPack_Packages
-WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
+COMMAND rm -rf _CPack_Packages
+#WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
 )
 add_custom_target(distcheck
 COMMAND make package
 )
 add_custom_target(distcheck
 COMMAND make package
-COMMAND rm -rf ${PROJECT_DIRECTORY}/_CPack_Packages
+COMMAND rm -rf _CPack_Packages
 COMMAND tar xvf ${CPACK_PACKAGE_FILE_NAME}.tar.bz2
 COMMAND tar xvf ${CPACK_PACKAGE_FILE_NAME}.tar.bz2
-COMMAND cd ${PROJECT_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME} && cmake .
-COMMAND cd ${PROJECT_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME} && make
-COMMAND cd ${PROJECT_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME} && make test
-COMMAND rm -rf ${PROJECT_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}
-WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
+COMMAND cd ${CPACK_PACKAGE_FILE_NAME} && cmake .
+COMMAND cd ${CPACK_PACKAGE_FILE_NAME} && make
+COMMAND cd ${CPACK_PACKAGE_FILE_NAME} && make test
+COMMAND rm -rf ${CPACK_PACKAGE_FILE_NAME}
+#WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
 )
 
 add_custom_target(maintainer-clean
 )
 
 add_custom_target(maintainer-clean
@@ -238,6 +238,5 @@ COMMAND make java-clean
 COMMAND make doc-clean
 COMMAND make supernovae-clean
 COMMAND make maintainer-clean
 COMMAND make doc-clean
 COMMAND make supernovae-clean
 COMMAND make maintainer-clean
-WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
 )
 include(CPack)
 )
 include(CPack)