summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc.mk4
-rw-r--r--ghc/ghc.mk7
2 files changed, 5 insertions, 6 deletions
diff --git a/ghc.mk b/ghc.mk
index 5f1d856ee5..3e024acc85 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1021,6 +1021,8 @@ $(eval $(call bindist-list,.,\
$(BINDIST_LIBS) \
$(BINDIST_HI) \
$(BINDIST_EXTRAS) \
+ includes/Makefile \
+ $(includes_SETTINGS) \
$(includes_H_FILES) \
$(includes_DERIVEDCONSTANTS) \
$(includes_GHCCONSTANTS) \
@@ -1037,7 +1039,7 @@ $(eval $(call bindist-list,.,\
$(wildcard compiler/stage2/doc) \
$(wildcard libraries/*/dist-install/doc/) \
$(wildcard libraries/*/*/dist-install/doc/) \
- $(filter-out settings llvm-targets llvm-passes,$(INSTALL_LIBS)) \
+ $(filter-out llvm-targets llvm-passes,$(INSTALL_LIBS)) \
$(RTS_INSTALL_LIBS) \
$(filter-out %/project.mk mk/config.mk %/mk/install.mk,$(MAKEFILE_LIST)) \
mk/project.mk \
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index 9747e34dcc..b1f9f57d81 100644
--- a/ghc/ghc.mk
+++ b/ghc/ghc.mk
@@ -129,10 +129,7 @@ all_ghc_stage1 : $(GHC_STAGE1)
all_ghc_stage2 : $(GHC_STAGE2)
all_ghc_stage3 : $(GHC_STAGE3)
-settings : $(includes_SETTINGS)
- "$(CP)" $< $@
-
-$(INPLACE_LIB)/settings : settings
+$(INPLACE_LIB)/settings : $(includes_SETTINGS)
"$(CP)" $< $@
$(INPLACE_LIB)/llvm-targets : llvm-targets
@@ -171,7 +168,7 @@ $(GHC_STAGE2) : $(foreach w,$(GhcLibWays),libraries/base/dist-install/build/GHC/
endif
-INSTALL_LIBS += settings
+INSTALL_LIBS += $(includes_SETTINGS)
INSTALL_LIBS += llvm-targets
INSTALL_LIBS += llvm-passes