[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: multiple target packages - how do they work?

On Thu, Jun 15, 2000 at 07:41:39PM +0200, David N. Welton wrote:
> > Have a look at debhelper, in particular the -p option (described in
> > debhelper(1)).  Look at
> > /usr/share/doc/debhelper/examples/rules.multi2 for a bare bones rule
> > file.
> Is the use of recursive make the cleanest way of doing this?  I had
> already looked at this file and rejected it as being a hack.

You could use rules.multi otherwise.

> > You will also need multiple binary sections in the debian/control
> > file, one for each binary package.
> I know this, it's the rules file which is a problem.  I don't have a
> good 'feel' for what the heck it's supposed to do:-)

All it has to do is build all of the required files, place them in
appropriate directory trees, one per binary package, and then build
the package from them.  Easy, eh?

Read the debhelper docs for one way of doing it.  Have a look at some
complex packages like perl-5.005 if that's not difficult enough ;-)



  Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
        Debian GNU/Linux Developer,  see http://www.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/

Reply to: