Mpiexec buildroot patch

Ben Webb ben at bellatrix.pcl.ox.ac.uk
Fri May 24 10:07:15 EDT 2002


	The attached patch makes Mpiexec's Makefile work properly with
build systems that install files into a holding directory (e.g. I need
it for building RPMs with a buildroot) by adding the DESTDIR variable in
at strategic points. It should be suitable for applying to current CVS.
I've been using this patch in my own mpiexec installation for some time
now, but it'd make more sense (IMHO) to stick it in mpiexec proper...

	Ben
-- 
ben at bellatrix.pcl.ox.ac.uk           http://bellatrix.pcl.ox.ac.uk/~ben/
"All science is either physics or stamp collecting."
	- Ernest (1st Baron) Rutherford
-------------- next part --------------
Index: Makefile.in
===================================================================
RCS file: /cvs/mpiexec/Makefile.in,v
retrieving revision 1.34
diff -u -r1.34 Makefile.in
--- Makefile.in	2002/01/21 17:41:23	1.34
+++ Makefile.in	2002/05/24 14:01:18
@@ -66,8 +66,8 @@
 distclean:: clean
 
 install: mpiexec
-	install -c $< $(bindir)
-	install -m 444 -c mpiexec.1 $(mandir)
+	install -c $< $(DESTDIR)$(bindir)
+	install -m 444 -c mpiexec.1 $(DESTDIR)$(mandir)
 
 tags: $(SRC) $(H) config.h
 	ctags $^


More information about the mpiexec mailing list