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?

Thanks!
j.

ps. Currently I am using this find command, are there any thing other
patterns I should look for?

  find . -name "*_p.a" -o -name "*.p_hi" -o -name "*.p_o"

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

Reply via email to