Documentation will not build on platforms where GNU make is not called make
I have tried to build the source tarball on FreeBSD, but it always stops somewhere around the documentation bits with the following error message:
[..]
make -C utils/haddock/doc html SPHINX_BUILD=/usr/local/bin/sphinx-build
make: illegal option -- -
usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable]
[-d flags] [-E variable] [-f makefile] [-I directory]
[-j max_jobs] [-m directory] [-V variable]
[variable=value] [target ...]
utils/haddock/doc/ghc.mk:22: recipe for target 'html_utils/haddock/doc' failed
gmake[1]: *** [html_utils/haddock/doc] Error 2
Makefile:129: recipe for target 'all' failed
gmake: *** [all] Error 2
That is probably because FreeBSD has GNU make(1) as gmake
, it should
be invoked with that name, that is, the value of the $(MAKE)
variable is not respected at the recursive invocation of make(1).
I have attached a patch for the haddock
repository that fixes this problem.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | highest |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |