[mpich2-commits] r9505 - mpich2/trunk

goodell at mcs.anl.gov goodell at mcs.anl.gov
Mon Feb 20 13:09:28 CST 2012


Author: goodell
Date: 2012-02-20 13:09:27 -0600 (Mon, 20 Feb 2012)
New Revision: 9505

Modified:
   mpich2/trunk/Makefile.am
Log:
fix coverage again

SUBDIRS contains ".", so we have to avoid endlessly recursing when we
encounter that directory.  Not sure how this ever worked, unless I added
"." to SUBDIRS after the recent-ish coverage fix.

No reviewer.


Modified: mpich2/trunk/Makefile.am
===================================================================
--- mpich2/trunk/Makefile.am	2012-02-18 01:56:53 UTC (rev 9504)
+++ mpich2/trunk/Makefile.am	2012-02-20 19:09:27 UTC (rev 9505)
@@ -193,8 +193,13 @@
 	    rm -f *.gcov ; \
 	done
 	for subdir in $(SUBDIRS) - ; do \
-	    if test $$subdir = "-" ; then break ; fi ; \
-	    ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) coverage ) ; \
+	    if test "x$$subdir" = "x-" ; then break ; fi ; \
+## SUBDIRS contains "."
+	    if test "x$$subdir" = "x." ; then \
+	        : ; \
+	    else \
+	        ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) coverage ) ; \
+	    fi \
 	done
 
 COVERAGE_CLEAN_TARGET=coverage-clean



More information about the mpich2-commits mailing list