pf3 at volker-wysk.de
Wed Feb 23 15:48:28 CET 2011
I'm new to Cabal, and I'm trying to Cabalize my library HsShellScript, with help by Howard Golden. I'm using the Simple Build Infrastructure.
1. I'm irritated by the fact, that calling the Cabal with "runhaskell configure; runhaskell build; runhaskell install" is _not_ sufficent in many cases. You need additional arguments for "runhaskell configure", and "runhaskell build" can't build everything, you need other actions in many cases. I need haddock, and it can't be specified in the .cabal file, or run by "runhaskell build".
I'm about to include this Makefile:
default :: build
runhaskell Setup.lhs configure --ghc --prefix=/tmp
runhaskell Setup.lhs build
runhaskell Setup.lhs haddock
runhaskell Setup.lhs install
This would make the installation a matter of "make configure; make; make install".
Is this the way it should be done?
2. I have some HTML pages of additional documentation, which need to be installed, and need to be included in the (sdist) generated distribution package.
I have no clue how this should be done.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Glasgow-haskell-users