The following commit has been merged in the master branch:
commit cfe86ef1ba978c3bedc5a8541a206b539c03f5e1
Author: Bruno Kleinert <[email protected]>
Date: Wed Sep 9 16:45:53 2009 +0200
Make parallel builds possible on SMP
Grab example code snippet from our policy and drop it into debian/rules. So
MAKEFLAGS=-jN gets set.
Start revision -2.
diff --git a/debian/changelog b/debian/changelog
index c0de21e..6dff340 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sauerbraten (0.0.20090504.dfsg-2) unstable; urgency=low
+
+ [ Bruno "Fuddl" Kleinert ]
+ * Drop code snippet in debian/rules to make parallel builds possible on SMP
+ machines.
+
+ -- Bruno "Fuddl" Kleinert <[email protected]> Wed, 09 Sep 2009 16:43:56 +0200
+
sauerbraten (0.0.20090504.dfsg-1) unstable; urgency=low
[ Bruno "Fuddl" Kleinert ]
diff --git a/debian/rules b/debian/rules
index cc67a36..8050744 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,10 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
else
CXXOPTFLAGS+=-O2 -fomit-frame-pointer
endif
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NUMJOBS = $(patsubst parallel=%,%,$(filter
parallel=%,$(DEB_BUILD_OPTIONS)))
+ MAKEFLAGS += -j$(NUMJOBS)
+endif
patch-stamp: patch
--
Packaging for sauerbraten game engine
_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits