@@ -16,6 +16,7 @@ DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
16
16
QT_PLUGIN_DIR = usr/lib/$(DEB_BUILD_MULTIARCH ) /qt4/plugins
17
17
18
18
DEB_TEST_TARGET ?= Experimental
19
+ BUILDDIR ?= debian/build
19
20
20
21
QGIS_VERSION =$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.* \) -.*/\1/p')
21
22
@@ -155,7 +156,7 @@ cleantemplates:
155
156
$(MAKE ) -f debian/rules debian/control debian/compat
156
157
157
158
binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep :
158
- dh $@ --with python2 --parallel --builddirectory=debian/build
159
+ dh $@ --with python2 --parallel --builddirectory=$( BUILDDIR )
159
160
160
161
override_dh_clean : cleantemplates
161
162
dh_clean
@@ -164,7 +165,7 @@ override_dh_clean: cleantemplates
164
165
-$(RM) $(CURDIR)/src/core/qgscontexthelp_texts.cpp
165
166
-$(RM) $(CURDIR)/src/core/qgsexpression_texts.cpp
166
167
167
- -$(RM) -r $(CURDIR)/debian/build /
168
+ -$(RM) -r $(CURDIR)/$(BUILDDIR) /
168
169
169
170
override_dh_auto_configure : templates
170
171
dh_auto_configure -- $(CMAKE_OPTS )
@@ -176,9 +177,9 @@ override_dh_auto_test:
176
177
localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
177
178
-LOCPATH=$(CURDIR ) /debian/tmp/locale/ \
178
179
LC_ALL=en_US.UTF-8 \
179
- LD_LIBRARY_PATH=$(CURDIR ) /debian/build /output/lib:$(LD_LIBRARY_PATH ) \
180
+ LD_LIBRARY_PATH=$(CURDIR ) /$( BUILDDIR ) /output/lib:$(LD_LIBRARY_PATH ) \
180
181
PATH=/usr/sbin:$(PATH ) \
181
- $(TESTMAKE ) -C debian/build $(DEB_TEST_TARGET )
182
+ $(TESTMAKE ) -C $( BUILDDIR ) $(DEB_TEST_TARGET )
182
183
else
183
184
override_dh_auto_test :
184
185
@echo Skipping tests.
0 commit comments