Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
77d1a44a
Commit
77d1a44a
authored
Mar 01, 2013
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix haddocking after the build system changes
parent
dd9da49c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
21 deletions
+28
-21
ghc.mk
ghc.mk
+28
-21
No files found.
ghc.mk
View file @
77d1a44a
...
@@ -511,6 +511,24 @@ ALL_STAGE1_LIBS += $(foreach lib,$(PACKAGES_STAGE1),$(libraries/$(lib)_dist-inst
...
@@ -511,6 +511,24 @@ ALL_STAGE1_LIBS += $(foreach lib,$(PACKAGES_STAGE1),$(libraries/$(lib)_dist-inst
endif
endif
BOOT_LIBS
=
$(
foreach
lib,
$(PACKAGES_STAGE0)
,
$
(
libraries/
$(lib)
_dist-boot_v_LIB
))
BOOT_LIBS
=
$(
foreach
lib,
$(PACKAGES_STAGE0)
,
$
(
libraries/
$(lib)
_dist-boot_v_LIB
))
# -----------------------------------------------
# Haddock-related bits
# Run Haddock for the packages that will be installed. We need to handle
# compiler specially due to the different dist directory name.
$(foreach
p,$(INSTALL_PACKAGES),$(eval
$p_dist-install_DO_HADDOCK
=
YES
))
compiler_stage2_DO_HADDOCK
=
YES
# Build the Haddock contents and index
ifeq
"$(HADDOCK_DOCS)" "YES"
libraries/dist-haddock/index.html
:
inplace/bin/haddock$(exeext) $(ALL_HADDOCK_FILES)
cd
libraries
&&
sh gen_contents_index
--intree
ifeq
"$(phase)" "final"
$(eval
$(call
all-target,library_doc_index,libraries/dist-haddock/index.html))
endif
INSTALL_LIBRARY_DOCS
+=
libraries/dist-haddock/
*
endif
# ----------------------------------------
# ----------------------------------------
# Special magic for the ghc-prim package
# Special magic for the ghc-prim package
...
@@ -565,6 +583,9 @@ endif
...
@@ -565,6 +583,9 @@ endif
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Include build instructions from all subdirs
# Include build instructions from all subdirs
# These need to be in dependency order, as some of the rules refer to
# variables defined by their dependencies
ifneq
"$(BINDIST)" "YES"
ifneq
"$(BINDIST)" "YES"
BUILD_DIRS
+=
\
BUILD_DIRS
+=
\
$(GHC_MKDIRHIER_DIR)
$(GHC_MKDIRHIER_DIR)
...
@@ -614,9 +635,7 @@ endif
...
@@ -614,9 +635,7 @@ endif
ifneq
"$(CLEANING)" "YES"
ifneq
"$(CLEANING)" "YES"
BUILD_DIRS
+=
\
BUILD_DIRS
+=
\
$(
patsubst
%, libraries/%,
$(PACKAGES_STAGE1)
)
\
$(
patsubst
%, libraries/%,
$(PACKAGES_STAGE1)
)
$(
patsubst
%, libraries/%,
$(PACKAGES_STAGE2)
)
\
libraries/dph
endif
endif
...
@@ -651,6 +670,12 @@ BUILD_DIRS += \
...
@@ -651,6 +670,12 @@ BUILD_DIRS += \
$(MAYBE_RUNGHC)
\
$(MAYBE_RUNGHC)
\
ghc
ghc
ifneq
"$(CLEANING)" "YES"
BUILD_DIRS
+=
\
$(
patsubst
%, libraries/%,
$(PACKAGES_STAGE2)
)
\
libraries/dph
endif
ifneq
"$(BINDIST)" "YES"
ifneq
"$(BINDIST)" "YES"
ifneq
"$(CrossCompiling)-$(phase)" "YES-final"
ifneq
"$(CrossCompiling)-$(phase)" "YES-final"
BUILD_DIRS
+=
\
BUILD_DIRS
+=
\
...
@@ -686,24 +711,6 @@ $(foreach pkg,$(PACKAGES_STAGE1) $(PACKAGES_STAGE2),$(eval libraries/$(pkg)_dist
...
@@ -686,24 +711,6 @@ $(foreach pkg,$(PACKAGES_STAGE1) $(PACKAGES_STAGE2),$(eval libraries/$(pkg)_dist
# Add $(GhcBootLibHcOpts) to all stage0 package builds
# Add $(GhcBootLibHcOpts) to all stage0 package builds
$(foreach
pkg,$(PACKAGES_STAGE0),$(eval
libraries/
$(pkg)_dist-boot_HC_OPTS
+=
$
$(GhcBootLibHcOpts)
))
$(foreach
pkg,$(PACKAGES_STAGE0),$(eval
libraries/
$(pkg)_dist-boot_HC_OPTS
+=
$
$(GhcBootLibHcOpts)
))
# -----------------------------------------------
# Haddock-related bits
# Run Haddock for the packages that will be installed. We need to handle
# compiler specially due to the different dist directory name.
$(foreach
p,$(INSTALL_PACKAGES),$(eval
$p_dist-install_DO_HADDOCK
=
YES
))
compiler_stage2_DO_HADDOCK
=
YES
# Build the Haddock contents and index
ifeq
"$(HADDOCK_DOCS)" "YES"
libraries/dist-haddock/index.html
:
inplace/bin/haddock$(exeext) $(ALL_HADDOCK_FILES)
cd
libraries
&&
sh gen_contents_index
--intree
ifeq
"$(phase)" "final"
$(eval
$(call
all-target,library_doc_index,libraries/dist-haddock/index.html))
endif
INSTALL_LIBRARY_DOCS
+=
libraries/dist-haddock/
*
endif
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Bootstrapping libraries
# Bootstrapping libraries
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment