summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2020-05-13 14:39:50 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2020-05-13 17:11:56 +0200
commit8732d9e7fdab5a65098fb6453a335ed224c66d05 (patch)
tree07b8cd1b337d8cdf18b82297d92ddbf32f3ddd8d /build
parent35fab6e42c29bc09e03d14802a5fdda5b57723ee (diff)
Clean linXX_build folder during deb creation
Diffstat (limited to 'build')
-rw-r--r--[-rwxr-xr-x]build/debian/rules11
1 files changed, 7 insertions, 4 deletions
diff --git a/build/debian/rules b/build/debian/rules
index f338090b7f..821c10d339 100755..100644
--- a/build/debian/rules
+++ b/build/debian/rules
@@ -6,15 +6,18 @@ DEB_BUILD_OPTIONS= noopt
# Build flags are passed in from the SConscript.
MIXXX_SCONS_FLAGS = ""
+MIXXX_BUILD_FOLDER = "linux_build"
# If ARCH is set to a different architecture when running pbuilder, pbuilder
# will be set to create an environment to build packages for the architecture
# specified in ARCH.
ifneq (,$(findstring i386,$(ARCH)))
- MIXXX_SCONS_FLAGS += machine=x86
+ MIXXX_SCONS_FLAGS += machine=x86
+ MIXXX_BUILD_FOLDER = "lin32_build"
endif
ifneq (,$(findstring amd64,$(ARCH)))
- MIXXX_SCONS_FLAGS += machine=x86_64
+ MIXXX_SCONS_FLAGS += machine=x86_64
+ MIXXX_BUILD_FOLDER = "lin64_build"
endif
# parallel builds for scons
@@ -35,9 +38,9 @@ override_dh_auto_build:
override_dh_auto_clean:
scons $(MIXXX_SCONS_FLAGS) -c || true
- rm -rf .sconf_temp/ cache/ linux_build/
+ rm -rf .sconf_temp/ cache/ $(MIXXX_BUILD_FOLDER)/
dh_clean .sconsign.dblite cachecustom.py \
- config.log src/build.h build/*.pyc mixxx.1
+ config.log src/build.h build/*.pyc mixxx.1 lib/*/lib/*.a
dh_auto_clean
override_dh_auto_install: