aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-04-29 16:04:33 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-04-30 08:18:42 +0000
commit02280bf14e5c42d29018a5bd46084c1351c3c248 (patch)
treec7030ad5f9884c5d4c03786f3c92f338dfe942d1
parent69e880c050bd5afa7930600cab30370c202c11fd (diff)
Make sure "make clean" does not remove data directories
These resources are not temporary artifacts, so they should still be around after "make clean". Fixes: QTCREATORBUG-13060 Change-Id: I0de91044d597b6a54599c7bc55f83332b41b5572 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--qtcreatordata.pri5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtcreatordata.pri b/qtcreatordata.pri
index 7d723e3170..e34e541269 100644
--- a/qtcreatordata.pri
+++ b/qtcreatordata.pri
@@ -30,8 +30,11 @@ defineReplace(stripStaticBase) {
win32:copy2build.commands = $$QMAKE_COPY \"${QMAKE_FILE_IN}\" \"${QMAKE_FILE_OUT}\"
unix:copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copy2build.name = COPY ${QMAKE_FILE_IN}
- copy2build.config += no_link
+ copy2build.CONFIG += no_link no_clean
QMAKE_EXTRA_COMPILERS += copy2build
+ for(static_file, STATIC_FILES) {
+ QMAKE_DISTCLEAN += $$STATIC_OUTPUT_BASE/$$stripStaticBase($$static_file)
+ }
}
static.files = $$STATIC_FILES