chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e600bdf
)
Support DEB_BUILD_OPTIONS=parallel=N
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 18 Jan 2009 16:26:39 +0000
(16:26 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 18 Jan 2009 16:26:39 +0000
(16:26 +0000)
debian/rules
patch
|
blob
|
blame
|
history
diff --git
a/debian/rules
b/debian/rules
index d6c851362cf6a4334499fb49bf4b424f4e6a61f6..5c53f50bc27ae6044fcde3ffd47ffd3fc5d87e14 100755
(executable)
--- 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