[MOAB-dev] r1242 - MOAB/trunk/tools/iMesh/SIDL

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Fri Aug 17 11:30:15 CDT 2007


Author: kraftche
Date: 2007-08-17 11:30:15 -0500 (Fri, 17 Aug 2007)
New Revision: 1242

Modified:
   MOAB/trunk/tools/iMesh/SIDL/Makefile.in
Log:
Make sure 'make prefix=/some/dir install' works for SIDL stuff

Modified: MOAB/trunk/tools/iMesh/SIDL/Makefile.in
===================================================================
--- MOAB/trunk/tools/iMesh/SIDL/Makefile.in	2007-08-17 14:22:30 UTC (rev 1241)
+++ MOAB/trunk/tools/iMesh/SIDL/Makefile.in	2007-08-17 16:30:15 UTC (rev 1242)
@@ -158,16 +158,34 @@
 
 install-recursive: recursive
 	if test "x$(USE_BABEL)" = "xyes"; then \
-	  (cd mserver && $(MAKE) -f ../$(srcdir)/mserver.make install DESTDIR="$(DESTDIR)") && \
-	  (cd Cclient && $(MAKE) -f ../$(srcdir)/Cclient.make install DESTDIR="$(DESTDIR)") && \
-	  (cd Fclient && $(MAKE) -f ../$(srcdir)/Fclient.make install DESTDIR="$(DESTDIR)") ; \
+	  for lib in mserver Cclient Fclient; do \
+	    (cd $$lib && \
+	      $(MAKE) -f ../$(srcdir)/$${lib}.make install \
+	         DESTDIR="$(DESTDIR)" \
+	         prefix="$(prefix)" \
+	         exec_prefix="$(exec_prefix)" \
+	         libdir="$(libdir)" \
+	         datarootdir="$(datarootdir)" \
+	         datadir="$(datadir)" \
+	         includedir="$(includedir)" \
+	    ) || exit 1; \
+	  done ; \
 	fi
 
 uninstall-recursive: recursive
 	if test "x$(USE_BABEL)" = "xyes"; then \
-	  (cd mserver && $(MAKE) -f ../$(srcdir)/mserver.make uninstall DESTDIR="$(DESTDIR)") && \
-	  (cd Cclient && $(MAKE) -f ../$(srcdir)/Cclient.make uninstall DESTDIR="$(DESTDIR)") && \
-	  (cd Fclient && $(MAKE) -f ../$(srcdir)/Fclient.make uninstall DESTDIR="$(DESTDIR)") ; \
+	  for lib in mserver Cclient Fclient; do \
+	    (cd $$lib && \
+	      $(MAKE) -f ../$(srcdir)/$${lib}.make uninstall \
+	         DESTDIR="$(DESTDIR)" \
+	         prefix="$(prefix)" \
+	         exec_prefix="$(exec_prefix)" \
+	         libdir="$(libdir)" \
+	         datarootdir="$(datarootdir)" \
+	         datadir="$(datadir)" \
+	         includedir="$(includedir)" \
+	    ) || exit 1; \
+	  done ; \
 	fi
 
 distdir: $(DIST_FILES)




More information about the moab-dev mailing list