Remove makefile complexity by always running tablegen with its final output

directory.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7485 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-08-01 20:34:56 +00:00
parent 65f62790d6
commit 02f7fa482a

View File

@ -48,13 +48,8 @@ TARGET_NAME := SparcV9
TABLEGEN_FILES := $(wildcard *.td)
$(TARGET_NAME)CodeEmitter.inc.tmp: $(TABLEGEN_FILES) $(TBLGEN)
@${ECHO} "TableGen-erating " $(TARGET_NAME)
$(TARGET_NAME)CodeEmitter.inc: $(TABLEGEN_FILES) $(TBLGEN)
$(TBLGEN) $(TARGET_NAME).td -gen-emitter -o $@
$(TARGET_NAME)CodeEmitter.inc: $(TARGET_NAME)CodeEmitter.inc.tmp
$(VERB) # Only copy over the real .inc file if it has changed!
$(VERB) diff $@ $< > /dev/null || cp $< $@
clean::
${RM} -f $(TARGET_NAME)CodeEmitter.inc $(TARGET_NAME)CodeEmitter.inc.tmp
${RM} -f $(TARGET_NAME)CodeEmitter.inc