summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-02-21 09:58:19 -0500
committerBen Gamari <ben@smart-cactus.org>2018-02-25 16:25:19 -0500
commit5e5e60dd2553549d7b00f6bb0a66064f8fe13bc2 (patch)
tree61c164a098cac272d78988f66576caadd2ff2ed9 /boot
parent3d43fd5b816a980d650d98f5822831dfce38f658 (diff)
downloadhaskell-5e5e60dd2553549d7b00f6bb0a66064f8fe13bc2.tar.gz
boot: Create GNUmakefiles for libraries
D3918 neglected to implement this when it rewrote boot in python.
Diffstat (limited to 'boot')
-rwxr-xr-xboot11
1 files changed, 11 insertions, 0 deletions
diff --git a/boot b/boot
index 7dc2983fea..f91372464d 100755
--- a/boot
+++ b/boot
@@ -132,6 +132,17 @@ def boot_pkgs():
pkg = pkg,
dir = dir_)))
+ makefile = os.path.join(package, 'GNUmakefile')
+ with open(makefile, 'w') as f:
+ f.write(dedent(
+ """\
+ dir = {package}
+ TOP = {top}
+ include $(TOP)/mk/sub-makefile.mk
+ FAST_MAKE_OPTS += stage=0
+ """.format(package = package, top = top)
+ ))
+
def autoreconf():
# Run autoreconf on everything that needs it.