diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-18 00:35:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-18 00:35:32 +0000 |
commit | f2a1224ec44cf2dcad31907fa7822fd03e90175c (patch) | |
tree | 7172626a84880fd4475fe6367d7df03eea4c4ac1 | |
parent | 9e86a735682f3f62ff79291b4673e00cf5f2385b (diff) |
improve portability to solaris 10, PR7380, patch by Simon Billingsley!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106259 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.rules | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.rules b/Makefile.rules index f2315fbb0b..9c19d5550a 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -808,7 +808,7 @@ ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT)) $(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 @@ ifdef EXPERIMENTAL_DIRS $(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 := $(foreach T,$(RecursiveTargets),%/.make$(T)) $(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 @@ $(RecursiveTargets):: $(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; \ |