summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--make-tar.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb9dc8b9..41b7f57d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -207,7 +207,7 @@ set(filename_0 "${OPENTRACK_COMMIT}")
set(filename "${CMAKE_BINARY_DIR}/${filename_0}.zip")
add_custom_command(OUTPUT ${filename} COMMAND env sh "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}")
-add_custom_target(tarball DEPENDS ${filename})
+add_custom_target(tarball)
opentrack_module(opentrack-api opentrack)
diff --git a/make-tar.sh b/make-tar.sh
index cd5abc56..8954a4ba 100644
--- a/make-tar.sh
+++ b/make-tar.sh
@@ -3,6 +3,8 @@
prefix="$1"
filename="$2"
+rm -fv "$filename"
+
if : &&
cd $(dirname -- "${prefix}") &&
zip -9r "${filename}" $(basename "${prefix}")