[llvm-commits] CVS: llvm/Makefile.rules
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 15 21:11:40 PST 2006
Changes in directory llvm:
Makefile.rules updated: 1.346 -> 1.347
---
Log message:
Fix a minor makefile bug with lex/yacc handling that nate noticed. We don't
want to copy the files when the .cpp file changes, we want to copy them
to the .cvs versions when the .l/.y file change (like the comments even say).
This avoids having bogus changes show up in diffs.
---
Diffs of the changes: (+2 -2)
Makefile.rules | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.346 llvm/Makefile.rules:1.347
--- llvm/Makefile.rules:1.346 Wed Feb 15 01:23:05 2006
+++ llvm/Makefile.rules Wed Feb 15 23:10:48 2006
@@ -1231,7 +1231,7 @@
# source location and building them.
$(LexFiles:%.l=$(PROJ_SRC_DIR)/%.cpp.cvs): \
$(PROJ_SRC_DIR)/%.cpp.cvs: $(PROJ_SRC_DIR)/%.cpp
- $(Verb) $(CMP) -s $@ $< || \
+ $(Verb) $(CMP) -s $(PROJ_SRC_DIR)/$*.l $(PROJ_SRC_DIR)/$*.l.cvs || \
($(CP) $< $@; $(CP) $(PROJ_SRC_DIR)/$*.l $(PROJ_SRC_DIR)/$*.l.cvs)
$(LexFiles:%.l=$(ObjDir)/%.o) : \
@@ -1272,7 +1272,7 @@
# to the source location and building them.
$(YaccFiles:%.y=$(PROJ_SRC_DIR)/%.cpp.cvs): \
$(PROJ_SRC_DIR)/%.cpp.cvs: $(PROJ_SRC_DIR)/%.cpp
- $(Verb) $(CMP) -s $@ $< || \
+ $(Verb) $(CMP) -s $(PROJ_SRC_DIR)/$*.y $(PROJ_SRC_DIR)/$*.y.cvs || \
($(CP) $< $@; \
$(CP) $(PROJ_SRC_DIR)/$*.y $(PROJ_SRC_DIR)/$*.y.cvs; \
$(CP) $(PROJ_SRC_DIR)/$*.h $(PROJ_SRC_DIR)/$*.h.cvs)
More information about the llvm-commits
mailing list