[llvm-commits] [pre-11] CVS: llvm/Makefile.common

John Criswell criswell at cs.uiuc.edu
Thu Aug 7 10:52:02 PDT 2003


Changes in directory llvm:

Makefile.common updated: 1.108 -> 1.108.2.1

---
Log message:

Added the -s option to the cmp program.  This will prevent spurious error
output when the target file of the make rule doesn't exist (i.e. clean builds).



---
Diffs of the changes:

Index: llvm/Makefile.common
diff -u llvm/Makefile.common:1.108 llvm/Makefile.common:1.108.2.1
--- llvm/Makefile.common:1.108	Tue Aug  5 16:38:28 2003
+++ llvm/Makefile.common	Thu Aug  7 10:51:08 2003
@@ -773,7 +773,7 @@
           $(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 -s $@ $@.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 @@
 %.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 -s $*.tab.c $*.cpp > /dev/null || ${MV} -f $*.tab.c $*.cpp
+	$(VERB) cmp -s $*.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
 





More information about the llvm-commits mailing list