mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
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. llvm-svn: 26229
This commit is contained in:
parent
381e19a745
commit
cf5110a6a6
@ -1231,7 +1231,7 @@ $(PROJ_SRC_DIR)/%.cpp: $(PROJ_SRC_DIR)/%.l
|
||||
# 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 @@ $(PROJ_SRC_DIR)/%.cpp $(PROJ_SRC_DIR)/%.h : $(PROJ_SRC_DIR)/%.y
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user