summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-06-14 10:11:52 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2022-06-14 10:33:42 +0100
commitf25d055dc62c8dca6be61880e799a1ca188e6f90 (patch)
treed494c7348f54105bb350261d04f655d841f3346b
parentdc202080d6cb26bab38233266d539b626258cd2c (diff)
downloadhaskell-wip/include-dirs-hadrian.tar.gz
hadrian: Don't install `include/` directory in bindist.wip/include-dirs-hadrian
The install_includes for the RTS package used to be put in the top-level ./include folder but this would lead to confusing things happening if you installed multiple GHC versions side-by-side. We don't need this folder anymore because install-includes is honoured properly by cabal and the relevant header files already copied in by the cabal installation process. If you want to depend on the header files for the RTS in a Haskell project then you just have to depend on the `rts` package and the correct include directories will be provided for you. If you want to depend on the header files in a standard C project then you should query ghc-pkg to get the right paths. ``` ghc-pkg field rts include-dirs --simple-output ``` Fixes #21609
-rw-r--r--hadrian/bindist/Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/hadrian/bindist/Makefile b/hadrian/bindist/Makefile
index 40efe553c1..6a3e54d529 100644
--- a/hadrian/bindist/Makefile
+++ b/hadrian/bindist/Makefile
@@ -87,7 +87,7 @@ else
install_bin: install_bin_libdir install_wrappers
endif
-install: install_bin install_lib install_includes
+install: install_bin install_lib
install: install_docs update_package_db
ActualBinsDir=${ghclibdir}/bin
@@ -178,14 +178,6 @@ install_lib: lib/settings
cp -R $$i "$(DESTDIR)$(ActualLibsDir)/"; \
done
-INCLUDES = $(wildcard ./include/*)
-install_includes:
- @echo "Copying include files to $(DESTDIR)$(includedir)"
- $(INSTALL_DIR) "$(DESTDIR)$(includedir)"
- for i in $(INCLUDES); do \
- cp -R $$i "$(DESTDIR)$(includedir)/"; \
- done
-
DOCS = $(wildcard ./docs/*)
install_docs:
@echo "Copying docs to $(DESTDIR)$(docdir)"