"Jeremy Shaw" <[EMAIL PROTECTED]> writes:

> Hello,
>
> I started working on building -prof .debs by default, but I ran into a
> minor snag. I do not see an easy way to seperate the generated files
> into the -dev and -prof packages -- all the files are lumped into the
> same directory tree.
>
> Here is the process I am using:
>
>  1) setup configure --enable-library-profiling
>  2) setup build
>  3) setup copy --copy-prefix $tmp
>
> The problem is, the build phase builds both the profiled and
> non-profiled version, and puts them in the same place. The best option
> I see at the moment is to use 'find' to find all the files that look
> like profiling enabled files and move them out of the -dev package
> into the -prof package. That seems error prone however.
>
> Does anyone have any suggestions? Perhaps cabal should provide better
> support for this operation?

Not sure any better way to do this w/ cabal right now.  You could add
a flag to suppress the non-profiled build and do it in two steps, or
add a flag to output hte profiled builds elsewhere.  Both of those
sound a little dicy, but it could probably be made to work.


peace,

  isaac

_______________________________________________
debian-haskell mailing list
[email protected]
http://urchin.earth.li/mailman/listinfo/debian-haskell

Reply via email to