Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
8922301b
Commit
8922301b
authored
Nov 17, 2009
by
Simon Marlow
Browse files
exclude some haddock-related rules during BINDIST
parent
20f0cead
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc.mk
View file @
8922301b
...
...
@@ -718,9 +718,11 @@ install_mingw : $(INPLACE_MINGW)
endif
# Windows
libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock
:
\
ifneq
"$(BINDIST)" "YES"
$(ghc-prim_HADDOCK_FILE)
:
\
libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs
\
libraries/ghc-prim/dist-install/build/autogen/GHC/PrimopWrappers.hs
endif
# BINDIST
libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs
:
\
$(PRIMOPS_TXT) $(GENPRIMOP_INPLACE)
\
...
...
@@ -808,7 +810,7 @@ install_headers: $(INSTALL_HEADERS)
$(INSTALL_HEADER)
$(INSTALL_OPTS)
$$
i
"
$(DESTDIR)$(ghcheaderdir)
"
;
\
done
install_docs
:
$(INSTALL_DOCS)
$(INSTALL_LIBRARY_DOCS)
install_docs
:
$(INSTALL_DOCS)
$(INSTALL_DIR)
"
$(DESTDIR)$(docdir)
"
ifneq
"$(INSTALL_DOCS)" ""
for
i
in
$(INSTALL_DOCS)
;
do
\
...
...
rules/haddock.mk
View file @
8922301b
...
...
@@ -37,12 +37,14 @@ ifeq "$$(HSCOLOUR_SRCS)" "YES"
$1_$2_HADDOCK_FLAGS
+=
--hyperlink-source
endif
ifneq
"$$(BINDIST)" "YES"
$$($$($1_PACKAGE)_HADDOCK_FILE)
:
$$(INPLACE_BIN)/haddock$$(exeext) $$(GHC_CABAL_INPLACE) $$($1_$2_HS_SRCS) $$($$($1_PACKAGE)_HADDOCK_DEPS) | $$$$(dir $$$$@)/.
"
$
$(GHC_CABAL_INPLACE)
"
haddock
$2
$1
--with-haddock
=
$
$(TOP)
/
$
$(INPLACE_BIN)
/haddock
--with-ghc
=
$
$(TOP)
/
$
$(INPLACE_BIN)
/ghc-stage2
$$
(
$1_$2_HADDOCK_FLAGS
)
$$
(
$1_$2_HADDOCK_OPTS
)
# Make the haddocking depend on the library .a file, to ensure
# that we wait until the library is fully build before we haddock it
$$($$($1_PACKAGE)_HADDOCK_FILE)
:
$$($1_$2_v_LIB)
endif
endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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