summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-08 15:25:25 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-08 15:25:25 +0100
commita703f869583ce8bf296b0238b85f0c7e170b3ef2 (patch)
tree2651a995019436a7e5eac436aed957d2241f8582 /CMakeLists.txt
parent913b00b6e0db43115e69805c8640a744737fa4e5 (diff)
downloadpcitool-a703f869583ce8bf296b0238b85f0c7e170b3ef2.tar.gz
pcitool-a703f869583ce8bf296b0238b85f0c7e170b3ef2.tar.bz2
pcitool-a703f869583ce8bf296b0238b85f0c7e170b3ef2.tar.xz
pcitool-a703f869583ce8bf296b0238b85f0c7e170b3ef2.zip
Fix dist_clean target
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72c50b6..486e29a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -197,10 +197,10 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.bzr/)
add_dependencies(pci build)
# We need to generate build.h for source releases
- add_custom_target(dist_clean
- COMMAND make clean WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/driver
- COMMAND ${CMAKE_MAKE_PROGRAM} clean WORKING_DIRECTORY ${CMAKE_CURRENT_DIR}
- )
+ add_custom_target(dist_clean make clean -C driver
+ COMMAND ${CMAKE_MAKE_PROGRAM} clean
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
+ )
add_custom_target(dist_prepare DEPENDS dist_clean
COMMAND ${CMAKE_COMMAND} -DPCILIB_SOURCE_DIR=${CMAKE_SOURCE_DIR} -DPCILIB_BINARY_DIR=${CMAKE_SOURCE_DIR} -DPCILIB_RELEASE=${CPACK_PACKAGE_VERSION} -P ${CMAKE_SOURCE_DIR}/cmake/build.cmake
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}