[commit: ghc] master: boot: Create GNUmakefiles for libraries (5e5e60d)

git at git.haskell.org git at git.haskell.org
Sun Feb 25 21:57:48 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/5e5e60dd2553549d7b00f6bb0a66064f8fe13bc2/ghc

>---------------------------------------------------------------

commit 5e5e60dd2553549d7b00f6bb0a66064f8fe13bc2
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Feb 21 09:58:19 2018 -0500

    boot: Create GNUmakefiles for libraries
    
    D3918 neglected to implement this when it rewrote boot in python.


>---------------------------------------------------------------

5e5e60dd2553549d7b00f6bb0a66064f8fe13bc2
 boot | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/boot b/boot
index 7dc2983..f913724 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.



More information about the ghc-commits mailing list