Author: sebor
Date: Thu Oct 27 09:23:22 2005
New Revision: 328909

URL: http://svn.apache.org/viewcvs?rev=328909&view=rev
Log:
2005-10-27  Martin Sebor  <[EMAIL PROTECTED]>

        * GNUmakefile.cfg: Used the wildcard function instead of invoking
        ls via $(shell) for efficiency and alphabetically sorted source
        files. Used the := operator instead of the ordinay = for efficiency.

Modified:
    incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg

Modified: incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg
URL: 
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg?rev=328909&r1=328908&r2=328909&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg (original)
+++ incubator/stdcxx/trunk/etc/config/GNUmakefile.cfg Thu Oct 27 09:23:22 2005
@@ -44,10 +44,13 @@
 
 CXXFLAGS    += $(WARNFLAGS)
 
-SRCS         = $(shell cd $(SRCDIR) ; ls *.sh ; ls *.cpp)
-OBJS         = $(SRCS:.cpp=.o)
-TARGET       = $(SRCS:.cpp=)
-PWD          = $(shell pwd)
+# get a sorted list of config tests, starting with any shell scripts
+# with the .sh suffix, followed by C++ (.cpp) programs
+SRCS        := $(sort $(notdir $(wildcard $(SRCDIR)/*.sh)))
+SRCS        += $(sort $(notdir $(wildcard $(SRCDIR)/*.cpp)))
+OBJS        := $(SRCS:.cpp=.o)
+TARGET      := $(SRCS:.cpp=)
+PWD         := $(shell pwd)
 DASH_H       = -H
 
 CCNAME       = $(CXX)-$(CCVER)


Reply via email to