[llvm-commits] [llvm] r106259 - /llvm/trunk/Makefile.rules

Chris Lattner sabre at nondot.org
Thu Jun 17 17:35:33 PDT 2010


Author: lattner
Date: Thu Jun 17 19:35:32 2010
New Revision: 106259

URL: http://llvm.org/viewvc/llvm-project?rev=106259&view=rev
Log:
improve portability to solaris 10, PR7380, patch by Simon Billingsley!

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=106259&r1=106258&r2=106259&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Thu Jun 17 19:35:32 2010
@@ -808,7 +808,7 @@
 $(RecursiveTargets)::
 	$(Verb) for dir in $(DIRS); do \
 	  if ([ ! -f $$dir/Makefile ] || \
-	      test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
+	      command test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
 	    $(MKDIR) $$dir; \
 	    $(CP) $(PROJ_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
 	  fi; \
@@ -831,7 +831,7 @@
 $(RecursiveTargets)::
 	$(Verb) for dir in $(EXPERIMENTAL_DIRS); do \
 	  if ([ ! -f $$dir/Makefile ] || \
-	      test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
+	      command test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
 	    $(MKDIR) $$dir; \
 	    $(CP) $(PROJ_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
 	  fi; \
@@ -866,7 +866,7 @@
 
 $(ParallelTargets) :
 	$(Verb) if ([ ! -f $(@D)/Makefile ] || \
-	            test $(@D)/Makefile -ot \
+	            command test $(@D)/Makefile -ot \
                       $(PROJ_SRC_DIR)/$(@D)/Makefile ); then \
 	  $(MKDIR) $(@D); \
 	  $(CP) $(PROJ_SRC_DIR)/$(@D)/Makefile $(@D)/Makefile; \
@@ -887,7 +887,7 @@
 	$(Verb) for dir in $(OPTIONAL_DIRS); do \
 	  if [ -d $(PROJ_SRC_DIR)/$$dir ]; then\
 	    if ([ ! -f $$dir/Makefile ] || \
-	        test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
+	        command test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
 	      $(MKDIR) $$dir; \
 	      $(CP) $(PROJ_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
 	    fi; \





More information about the llvm-commits mailing list