mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
65f62790d6
commit
02f7fa482a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user