X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e600bdf33703d79632a35b634db7ef4615590ef5..d0b4f0acd54eeebcde98a1b4476b232dbece6048:/debian/rules diff --git a/debian/rules b/debian/rules index d6c8513..5c53f50 100755 --- a/debian/rules +++ b/debian/rules @@ -43,6 +43,12 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif +# Set DEB_BUILD_OPTIONS=parallel=N to do make -jN +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +PARALLEL = -j$(NUMJOBS) +endif + export INSTALL_DATA export INSTALL_SCRIPT export INSTALL_PROGRAM @@ -68,7 +74,7 @@ build: echo ./config.status;\ ./config.status;\ fi - $(MAKE) SENDMAIL=${SENDMAIL} + $(MAKE) SENDMAIL=${SENDMAIL} ${PARALLEL} pkg-disorder: build rm -rf debian/disorder