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

Re: creating a pakage with 2 binaries



On Sat, Jun 09, 2001 at 02:44:09PM +0200, Uwe Hermann wrote:
> On Sat, Jun 09, 2001 at 01:55:41PM +0200, Nikolaus Regnat wrote:
> > Is it possible to configure / compile / install both programs at
> > once (so that they both go into the same deb) or do I have to do
> > this seperatly?
> 
> Yes, it's possible. Just add the respective commands in
> debian/rules, e.g. (using debhelper):
> 
> configure-stamp:
>         ./configure --foo etc..
>         ./subdir/configure --bar etc...
> build-stamp:
>         make
>         make -f subdir/make

Careful, this will create a mess because subdir's Makefile ends up in
the current directory, overwriting the Makefile previously created by
./configure. Use this instead:

configure-stamp:
        ./configure --foo etc..
        cd subdir && ./configure --bar etc...

build-stamp:
        $(MAKE)
        $(MAKE) -C subdir

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  CS student at the Technische  |  GnuPG key:
  | \/¯|  http://atterer.net  |  Universität München, Germany  |  0x888354F7
  ¯ ´` ¯



Reply to: