Skip to content

Commit

Permalink
Fix building of optional packages
Browse files Browse the repository at this point in the history
The change to the packages file format broke it
  • Loading branch information
igfoo committed Jun 12, 2011
1 parent 8f1523e commit a8defd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages
@@ -1,5 +1,8 @@
# Despite the name "package", this file contains the master list of
# the *repositories* that make up GHC. It is parsed by boot and sync-all.
# the *repositories* that make up GHC. It is parsed by
# * boot
# * sync-all
# * rules/extra-packages.mk
#
# Some of this information is duplicated elsewhere in the build system:
# See Trac #3896
Expand Down
2 changes: 1 addition & 1 deletion rules/extra-packages.mk
Expand Up @@ -27,7 +27,7 @@
# add P to the list of packages

define extra-packages
$$(foreach p,$$(patsubst libraries/%,%,$$(wildcard $$(shell grep '^[^ #][^ ]* \+\(dph\|extra\) \+[^ ]\+ \+[^ ]\+ \+[^ ]\+' packages | sed 's/ .*//'))),\
$$(foreach p,$$(patsubst libraries/%,%,$$(wildcard $$(shell grep '^[^ #][^ ]* \+\(dph\|extra\) \+[^ ]\+ \+[^ ]\+$$$$' packages | sed 's/ .*//'))),\
$$(if $$(wildcard libraries/$$p/ghc-packages),\
$$(eval BUILD_DIRS += libraries/$$p) \
$$(foreach q,$$(shell cat libraries/$$p/ghc-packages2),$$(eval $$(call extra-package,$$p,$$p/$$q))),\
Expand Down

0 comments on commit a8defd8

Please sign in to comment.