diff --git a/llvm/lib/VMCore/Makefile b/llvm/lib/VMCore/Makefile index 6c2137eaddb0..af3ae403b93d 100644 --- a/llvm/lib/VMCore/Makefile +++ b/llvm/lib/VMCore/Makefile @@ -19,10 +19,13 @@ GENFILE:=$(PROJ_SRC_ROOT)/include/llvm/Intrinsics.gen INTRINSICTD := $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.td INTRINSICTDS := $(wildcard $(PROJ_SRC_ROOT)/include/llvm/Intrinsics*.td) -$(GENFILE): $(INTRINSICTDS) $(TBLGEN) - $(Echo) Building Intrinsics.gen from Intrinsics.td +$(ObjDir)/Intrinsics.gen.tmp: $(INTRINSICTDS) $(TBLGEN) + $(Echo) Building Intrinsics.gen.tmp from Intrinsics.td $(Verb) $(TableGen) $(INTRINSICTD) -o $@ -gen-intrinsic +$(GENFILE): $(ObjDir)/Intrinsics.gen.tmp + $(Verb) $(CMP) -s $@ $< || $(CP) $< $@ + install-local:: $(GENFILE) $(Echo) Installing $(PROJ_includedir)/llvm/Intrinsics.gen $(Verb) $(DataInstall) $(GENFILE) $(PROJ_includedir)/llvm/Intrinsics.gen