[SCM] LAMMPS Molecular Dynamics Simulator branch, master, updated. debian/0_20130201.gitdf9c707-1_exp1-6-g023c448
Anton Gladky
gladky.anton at gmail.com
Tue May 7 20:20:27 UTC 2013
The following commit has been merged in the master branch:
commit fdb3192a4b0ceee135013e7effdf4294d0042824
Author: Anton Gladky <gladky.anton at gmail.com>
Date: Tue May 7 21:25:08 2013 +0200
Use parallel build.
diff --git a/debian/rules b/debian/rules
index 429aff1..8051cca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,19 @@
#!/usr/bin/make -f
export OMPI_MCA_plm_rsh_agent=/bin/false #workaround to start MPI-applications in chroot
+export NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
disable_auto_test_archs_mpi = hurd-i386 mips mipsel s390 s390x
%:
- dh $@
+ dh $@ --parallel
override_dh_auto_clean:
cd src; make clean-all
dh_clean
override_dh_auto_build:
- cd src; $(MAKE) yes-all; $(MAKE) no-lib; $(MAKE) openmpi
+ cd src; $(MAKE) -j$(NUMJOBS) yes-all; $(MAKE) -j$(NUMJOBS) no-lib; $(MAKE) -j$(NUMJOBS) openmpi
mv src/lmp_openmpi src/lammps
chmod 644 examples/USER/sph/shock_tube/shock2d.lmp
--
LAMMPS Molecular Dynamics Simulator
More information about the debian-science-commits
mailing list