summaryrefslogtreecommitdiffstats
path: root/llvm/Makefile.common
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-08-05 21:38:28 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-08-05 21:38:28 +0000
commit1943f88a79259556c89b9a392c15e16db2a09003 (patch)
tree481d07517cf959ef2dee5698b36980a2468b1c8e /llvm/Makefile.common
parent4d79702a4c9c657b1c49855d8bf42a083c393bc3 (diff)
downloadbcm5719-llvm-1943f88a79259556c89b9a392c15e16db2a09003.tar.gz
bcm5719-llvm-1943f88a79259556c89b9a392c15e16db2a09003.zip
Reverted back to using OR for cmp/mv operations for lex/yacc output.
The shell AND/OR operators short-circuit on command success/failure, which is the inverse of exit status (i.e. 0 means success, non-zero means failure). llvm-svn: 7616
Diffstat (limited to 'llvm/Makefile.common')
-rw-r--r--llvm/Makefile.common6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/Makefile.common b/llvm/Makefile.common
index 0eb4b885fc4..3c1d0c85770 100644
--- a/llvm/Makefile.common
+++ b/llvm/Makefile.common
@@ -773,7 +773,7 @@ YACC_OUTPUT = $(addprefix $(YACC_FILES:%.y=%), .h .cpp .output)
$(SED) 's/void \*yy_flex_realloc/inline void *yy_flex_realloc/' | \
$(SED) 's/#define YY_BUF_SIZE 16384/#define YY_BUF_SIZE (16384*64)/' \
> $@.tmp
- $(VERB) cmp $@ $@.tmp > /dev/null && ${MV} -f $@.tmp $@
+ $(VERB) cmp $@ $@.tmp > /dev/null || ${MV} -f $@.tmp $@
@# remove the output of flex if it didn't get moved over...
@rm -f $@.tmp
@@ -783,8 +783,8 @@ YACC_OUTPUT = $(addprefix $(YACC_FILES:%.y=%), .h .cpp .output)
%.cpp %.h : %.y
@echo Bison\'ing $<...
$(VERB) $(BISON) -v -d -p $(<:%Parser.y=%) $*.y
- $(VERB) cmp $*.tab.c $*.cpp > /dev/null && ${MV} -f $*.tab.c $*.cpp
- $(VERB) cmp $*.tab.h $*.h > /dev/null && ${MV} -f $*.tab.h $*.h
+ $(VERB) cmp $*.tab.c $*.cpp > /dev/null || ${MV} -f $*.tab.c $*.cpp
+ $(VERB) cmp $*.tab.h $*.h > /dev/null || ${MV} -f $*.tab.h $*.h
@# If the files were not updated, don't leave them lying around...
@rm -f $*.tab.c $*.tab.h
OpenPOWER on IntegriCloud