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

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Thu Aug 16 15:59:43 CDT 2007


Author: kraftche
Date: 2007-08-16 15:59:43 -0500 (Thu, 16 Aug 2007)
New Revision: 1238

Modified:
   MOAB/trunk/tools/iMesh/SIDL/Makefile.in
Log:
Fix for previous commit: don't remove implementation files for SIDL
interface when doing "make clean" for an in-source-tree build.


Modified: MOAB/trunk/tools/iMesh/SIDL/Makefile.in
===================================================================
--- MOAB/trunk/tools/iMesh/SIDL/Makefile.in	2007-08-16 20:33:04 UTC (rev 1237)
+++ MOAB/trunk/tools/iMesh/SIDL/Makefile.in	2007-08-16 20:59:43 UTC (rev 1238)
@@ -107,16 +107,30 @@
 	fi
 
 clean: 
-	rm -rf Cclient Fclient mserver
+	rm -rf Cclient Fclient
 	rm -rf testcxx testcxx.lo testcxx.o .deps .libs
+	if test "x$(srcdir)" != "x."; then \
+	  rm -rf mserver; \
+	else \
+	  for file in mserver/*; do \
+	    found=0; \
+	    for sfile in $(SERVER_FILES); do \
+	      if test "x$$file" = "x$$sfile"; then \
+	        found=1; \
+              fi ; \
+            done ; \
+            if test "$$found" -eq 0; then rm -f $$file; fi ; \
+	  done ; \
+	fi
 
 distclean: clean
 	rm -f Makefile iMesh-SIDL-Defs.inc.in
 
 mostlyclean: 
-	rm -rf Cclient/*.o Cclient/*.lo \
-	       Fclient/*.o Fclient/*.lo \
-               server/*.o server/*.lo
+	for dir in Cclient Fclient mclient; do \
+	  rm -f $$dir/*.o $$dir/*.o $$dir/*.la $$dir/*.a $$dir/*.so; \
+	  rm -rf $$dir/.libs; \
+	done
 
 .PRECIOUS: Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status




More information about the moab-dev mailing list