Support DEB_BUILD_OPTIONS=parallel=n to build debs in parallel

This commit is contained in:
David Sansome 2011-12-01 10:58:49 +00:00
parent e613f86acf
commit 947c13511a
1 changed files with 8 additions and 2 deletions

10
debian/rules.in vendored
View File

@ -1,6 +1,12 @@
#!/usr/bin/make -f
# -*- makefile -*-
MY_MAKEFLAGS=
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MY_MAKEFLAGS=-j$(NUMJOBS)
endif
configure: configure-stamp
configure-stamp:
dh_testdir
@ -11,9 +17,9 @@ configure-stamp:
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
build-stamp: configure-stamp
dh_testdir
cd bin && make
cd bin && make $(MY_MAKEFLAGS)
touch $@
clean: