aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 7dfb2b4..09c0a9c 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -28,6 +28,13 @@ TopLevelTargets := check dist dist-check dist-clean tags dist-gzip dist-bzip2 \
UserTargets := $(RecursiveTargets) $(LocalTargets) $(TopLevelTargets)
InternalTargets := preconditions distdir dist-hook
+FilesToConfig := \
+ include/llvm/Config/config.h \
+ include/llvm/Support/DataTypes.h \
+ include/llvm/ADT/hash_map \
+ include/llvm/ADT/hash_set \
+ include/llvm/ADT/iterator
+
################################################################################
# INITIALIZATION: Basic things the makefile needs
################################################################################
@@ -77,6 +84,9 @@ ifneq ($(MakefileConfigIn),)
PreConditions += $(MakefileConfig)
endif
+FilesToConfigPATH := $(addprefix $(PROJ_OBJ_ROOT)/,$(FilesToConfig))
+PreConditions += $(FilesToConfigPATH)
+
preconditions : $(PreConditions)
#------------------------------------------------------------------------
@@ -134,6 +144,11 @@ $(ConfigStatusScript): $(ConfigureScript)
$(ConfigStatusScript) --recheck $(ConfigureScriptFLAGS) && \
$(ConfigStatusScript)
+.PRECIOUS: $(FilesToConfigPATH)
+$(FilesToConfigPATH) : $(PROJ_OBJ_ROOT)/% : $(PROJ_SRC_ROOT)/%.in
+ $(Echo) Regenerating $*
+ $(Verb) cd $(PROJ_OBJ_ROOT) && $(ConfigStatusScript) $*
+
#------------------------------------------------------------------------
# Make sure the configuration makefile is up to date
#------------------------------------------------------------------------
@@ -1576,3 +1591,4 @@ printvars::
$(Echo) "YaccFiles : " '$(YaccFiles)'
$(Echo) "LexFiles : " '$(LexFiles)'
$(Echo) "Module : " '$(Module)'
+ $(Echo) "FilesToConfig: " '$(FilesToConfigPATH)'