You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2005/09/21 20:37:18 UTC

svn commit: r290779 - /incubator/stdcxx/trunk/etc/config/makefile.common

Author: sebor
Date: Wed Sep 21 11:37:14 2005
New Revision: 290779

URL: http://svn.apache.org/viewcvs?rev=290779&view=rev
Log:
2005-09-21  Martin Sebor  <se...@roguewave.com>

	* makefile.common: Replaced a couple of invocations of the $(shell
	echo dirs/*.suffix) function with $(foreach d,dirs,$(wildcard
	d/*.suffix) for efficiency and correctness (when dirs is a list
	of two or more directories).

Modified:
    incubator/stdcxx/trunk/etc/config/makefile.common

Modified: incubator/stdcxx/trunk/etc/config/makefile.common
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/makefile.common?rev=290779&r1=290778&r2=290779&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/makefile.common (original)
+++ incubator/stdcxx/trunk/etc/config/makefile.common Wed Sep 21 11:37:14 2005
@@ -70,15 +70,18 @@
     repository_name = repository.ti
   endif
 
-  # ignore subdirectories when building a library
-  ALL_FILES := $(shell echo $(SRCDIRS)/*.cpp)
+  # traverse the list of source directories (SRCDIRS) and put together
+  # a list of .cpp files in each, ignoring any subdirectories
+  ALL_FILES := $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.cpp))
 
   # if the assembly file extension is non-empty and not the dot,
   # add all files with that extension to the list of files to
   # compile
   ifneq ($(AS_EXT),"")
     ifneq ($(AS_EXT),".")   # special value -- ignore atomic
-     ALL_FILES += $(shell echo $(SRCDIRS)/*$(AS_EXT))	
+      # traverse the list of source directories (SRCDIRS) and put together
+      # a list of assembly source files in each, ignoring any subdirectories
+      ALL_FILES += $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*$(AS_EXT)))
     endif
   endif
 endif