summaryrefslogtreecommitdiff
path: root/rules/manual-package-config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules/manual-package-config.mk')
-rw-r--r--rules/manual-package-config.mk45
1 files changed, 0 insertions, 45 deletions
diff --git a/rules/manual-package-config.mk b/rules/manual-package-config.mk
deleted file mode 100644
index a9993d9fae..0000000000
--- a/rules/manual-package-config.mk
+++ /dev/null
@@ -1,45 +0,0 @@
-# -----------------------------------------------------------------------------
-#
-# (c) 2009 The University of Glasgow
-#
-# This file is part of the GHC build system.
-#
-# To understand how the build system works and how to modify it, see
-# https://gitlab.haskell.org/ghc/ghc/wikis/building/architecture
-# https://gitlab.haskell.org/ghc/ghc/wikis/building/modifying
-#
-# -----------------------------------------------------------------------------
-
-
-define manual-package-config
-# args:
-# $1 = dir
-# $2 = distdir
-$(call trace, manual-package-config($1, $2))
-$(call profStart, manual-package-config($1, $2))
-
-$1/$2/package.conf.inplace : $1/package.conf.in $$$$(ghc-pkg_INPLACE) | $$$$(dir $$$$@)/.
- $$(HS_CPP) -P \
- -DTOP='"$$(TOP)"' \
- $$($1_$2_PACKAGE_CPP_OPTS) \
- -x c $$< -o $$@.raw
- grep -v '^#pragma GCC' $$@.raw | \
- sed -e 's/""//g' -e 's/:[ ]*,/: /g' > $$@
-
- "$$(ghc-pkg_INPLACE)" update --force $$@
-
-# This is actually a real file, but we need to recreate it on every
-# "make install", so we declare it as phony
-.PHONY: $1/$2/package.conf.install
-$1/$2/package.conf.install : $1/package.conf.in | $$$$(dir $$$$@)/.
- $$(HS_CPP) -P \
- -DINSTALLING \
- -DLIB_DIR='"$$(if $$(filter YES,$$(RelocatableBuild)),$$$$topdir,$$(ghclibdir))/$1"' \
- -DINCLUDE_DIR='"$$(if $$(filter YES,$$(RelocatableBuild)),$$$$topdir,$$(ghclibdir))/$1/include"' \
- $$($1_$2_PACKAGE_CPP_OPTS) \
- -x c $1/package.conf.in -o $$@.raw
- grep -v '^#pragma GCC' $$@.raw | \
- sed -e 's/""//g' -e 's/:[ ]*,/: /g' >$$@
-
-$(call profEnd, manual-package-config($1))
-endef