summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-01 16:34:33 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-01 21:02:49 +0000
commit104ff6e9ad85751dab2fc2ed25cf8f7827bb13f1 (patch)
tree840b8c87b16818837d142b6034145f4b25dba8d4 /boot
parent458c653a795ea06e7cbd24872e9961711f7044e8 (diff)
downloadhaskell-104ff6e9ad85751dab2fc2ed25cf8f7827bb13f1.tar.gz
Change how the build system handles packages
This makes the build system a little simpler, and in particular will make it easier to handle the changes needed for cross-compilation.
Diffstat (limited to 'boot')
-rwxr-xr-xboot5
1 files changed, 3 insertions, 2 deletions
diff --git a/boot b/boot
index f1282fce0d..13747421ed 100755
--- a/boot
+++ b/boot
@@ -131,8 +131,9 @@ sub boot_pkgs {
or die "Opening $package/ghc.mk failed: $!";
print GHCMK "${package}_PACKAGE = ${pkg}\n";
print GHCMK "${package}_dist-install_GROUP = libraries\n";
- print GHCMK "\$(if \$(filter ${dir},\$(PKGS_THAT_BUILD_WITH_STAGE0)),\$(eval \$(call build-package,${package},dist-boot,0)))\n";
- print GHCMK "\$(eval \$(call build-package,${package},dist-install,\$(if \$(filter ${dir},\$(PKGS_THAT_BUILD_WITH_STAGE2)),2,1)))\n";
+ print GHCMK "\$(if \$(filter ${dir},\$(PACKAGES_STAGE0)),\$(eval \$(call build-package,${package},dist-boot,0)))\n";
+ print GHCMK "\$(if \$(filter ${dir},\$(PACKAGES_STAGE1)),\$(eval \$(call build-package,${package},dist-install,1)))\n";
+ print GHCMK "\$(if \$(filter ${dir},\$(PACKAGES_STAGE2)),\$(eval \$(call build-package,${package},dist-install,2)))\n";
close GHCMK
or die "Closing $package/ghc.mk failed: $!";