mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Remove makefile complexity by always running tablegen with its final output
directory. llvm-svn: 7485
This commit is contained in:
parent
cd252af3e1
commit
1e006b1e92
@ -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