Support DEB_BUILD_OPTIONS=parallel=n to build debs in parallel
This commit is contained in:
parent
e613f86acf
commit
947c13511a
|
@ -1,6 +1,12 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
# -*- makefile -*-
|
# -*- 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: configure-stamp
|
||||||
configure-stamp:
|
configure-stamp:
|
||||||
dh_testdir
|
dh_testdir
|
||||||
|
@ -11,9 +17,9 @@ configure-stamp:
|
||||||
touch configure-stamp
|
touch configure-stamp
|
||||||
|
|
||||||
build: build-stamp
|
build: build-stamp
|
||||||
build-stamp: configure-stamp
|
build-stamp: configure-stamp
|
||||||
dh_testdir
|
dh_testdir
|
||||||
cd bin && make
|
cd bin && make $(MY_MAKEFLAGS)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in New Issue