> > We, gentoo, use rather special setup: we build haddock, but do not > > install wrapper in /usr/bin/ (in order to allow easier haddock > > upgrades), so we apply such haddock patch before building ghc: > > > > FILE: ghc/utils/haddock/ghc.mk > > > > -utils/haddock_dist_INSTALL_SHELL_WRAPPER = YES > > +utils/haddock_dist_INSTALL_SHELL_WRAPPER = NO > > OK, my patch won't help you then. It's a slightly odd thing for the > build system to support, though, and seeing as you have to patch the > build system anyway, couldn't you just remove this line instead?: > > install: install_utils/haddock_link
I thought 'utils/haddock_dist_INSTALL_SHELL_WRAPPER' is treated as
external tunable variable.
$ cat Makefile
utils/haddock_dist_INSTALL_SHELL_WRAPPER = YES
all:
@echo "Will we install? $(utils/haddock_dist_INSTALL_SHELL_WRAPPER)"
$ make
Will we install? YES
$ make utils/haddock_dist_INSTALL_SHELL_WRAPPER=NO
Will we install? NO
I was just lazy to pass a variable to make and used 'sed' to trigger
the knob (so I called it "patching").
Ok.
I'll just remove wrapper and link files after
make install DESTDIR='${D}
phase. Thus we'll get rid of any dependencies on build system internals.
--
Sergei
signature.asc
Description: PGP signature
_______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
