[lammps] 01/05: Respect --parallel option. (Closes: #805533)

Anton Gladky gladk at moszumanska.debian.org
Sun Dec 6 12:22:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch master
in repository lammps.

commit 579bfa95042dc5321afab98c12e04c740e11c5ea
Author: Anton Gladky <gladk at debian.org>
Date:   Sun Dec 6 11:14:29 2015 +0100

    Respect --parallel option. (Closes: #805533)
---
 debian/rules | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index dc45454..e99c8d7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,10 @@
 #!/usr/bin/make -f
 
 export OMPI_MCA_orte_rsh_agent=/bin/false                #workaround to start MPI-applications in chroot
-export NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    MAKEFLAGS += -j$(NUMJOBS)
+endif
 
 disable_auto_test_archs_mpi = hurd-i386 mips mipsel s390 s390x
 
@@ -13,7 +16,7 @@ override_dh_auto_clean:
 	dh_clean
 
 override_dh_auto_build:
-	cd src; $(MAKE) -j$(NUMJOBS) yes-all; $(MAKE) -j$(NUMJOBS) no-lib; $(MAKE) -j$(NUMJOBS) mpi
+	cd src; $(MAKE) yes-all; $(MAKE) no-lib; $(MAKE) mpi
 	mv src/lmp_mpi src/lammps
 
 override_dh_auto_test:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lammps.git



More information about the debian-science-commits mailing list