summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/rules17
1 files changed, 11 insertions, 6 deletions
diff --git a/debian/rules b/debian/rules
index 310ae74..30f19d2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -41,22 +41,27 @@ DEB_SCONS_EXTRA_FLAGS := \
$(NJOBS)
-DEB_SCONS_NOOPT_FLAGS := DEBUG=1 ENABLE_OPTIMIZATION=no
+DEB_SCONS_NOOPT_FLAGS := ENABLE_OPTIMIZATION=no
DEB_DH_MAKESHLIBS_ARGS := --version-info="libffado2 (>=${DEBIAN_FFADO_COMPATIBLE_VERSION})"
DEB_SCONS_ENVVARS :=
DEB_SCONS_INVOKE = $(DEB_SCONS_ENVVARS) scons
+DEB_SCONS_ARGS_COMMON = 'COMPILE_FLAGS=$(CFLAGS)' $(DEB_SCONS_EXTRA_FLAGS) \
+ $(DEB_SCONS_NOOPT_FLAGS)
+
+DEB_SCONS_ARGS_NODBG = $(DEB_SCONS_ARGS_COMMON) DESTDIR=$(DEB_DESTDIR) DEBUG=0
+DEB_SCONS_ARGS_DBG = $(DEB_SCONS_ARGS_COMMON) DESTDIR=$(DEB_DESTDIR)/dbg DEBUG=1
+
#common-build-arch:: debian/stamp-scons-build
### Mangle libffado filename ###
debian/stamp-scons-build:
-mkdir -p $(DEB_DESTDIR)
- $(DEB_SCONS_INVOKE) 'COMPILE_FLAGS=$(CFLAGS)' DESTDIR=$(DEB_DESTDIR) \
- $(DEB_SCONS_EXTRA_FLAGS) $(DEB_SCONS_NOOPT_FLAGS)
- $(DEB_SCONS_INVOKE) 'COMPILE_FLAGS=$(CFLAGS)' DESTDIR=$(DEB_DESTDIR) \
- $(DEB_SCONS_EXTRA_FLAGS) $(DEB_SCONS_NOOPT_FLAGS) \
- install
+ $(DEB_SCONS_INVOKE) $(DEB_SCONS_ARGS_NODBG)
+ $(DEB_SCONS_INVOKE) $(DEB_SCONS_ARGS_NODBG) install
+ $(DEB_SCONS_INVOKE) $(DEB_SCONS_ARGS_DBG)
+ $(DEB_SCONS_INVOKE) $(DEB_SCONS_ARGS_DBG) install
touch debian/stamp-scons-build
# this is bad but the only easy way to have ardour.rc generated from