When tblgen changes, regenerate all .inc files, but do not rebuild any .o
authorChris Lattner <sabre@nondot.org>
Thu, 16 Dec 2004 17:28:50 +0000 (17:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 16 Dec 2004 17:28:50 +0000 (17:28 +0000)
commit3c4734765e2cb4ab7cbe21657b9b71cffce1330f
treed66554de75e01029bc408553704b6305a2714ecd
parent47f9dd14b2c30bbb6c27d8cbb24a21f59e3a92af
When tblgen changes, regenerate all .inc files, but do not rebuild any .o
files that USE the .inc file unless the contents of the .inc file changes.

This should fix the problem where reconfiguring causes all targets to be
completely rebuilt (because config.h is usually modified, causing libsystem
to be rebuilt, causing tblgen to be rebuilt, causing .inc files to be
rebuilt, causing .o files to be rebuilt).

This patch also checks in a gross hack where .o files now explicitly depend
on $(BUILT_SOURCES), to avoid problems where the .inc files are not completely
generated before the .o files start to compile.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18986 91177308-0d34-0410-b5e6-96231b3b80d8
Makefile.rules