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

Re: creating a pakage with 2 binaries



Hello,

On Mon, Jun 11, 2001 at 07:29:43AM +0200, Nikolaus Regnat wrote:
> Has someone a solution for my installation problem? Compilation and
> building went fine, but I don´t know how the command for the
> installation should look like.
> 
>         $(MAKE) install prefix=$(CURDIR)/debian/pakage     <- already works
>         $(MAKE) -C subdir/ install prefix=?

Have you tried

        $(MAKE) install prefix=$(CURDIR)/debian/package
        $(MAKE) -C subdir install prefix=$(CURDIR)/debian/package

?? It /should/ work - with the "prefix=..." you are telling the
Makefile "I compiled the program to be *run* from /usr/bin/, but
please don't install it there now, install it in
$(CURDIR)/debian/package/usr/bin/ instead".

However, if the compiled programs end up in /bin instead of /usr/bin
when you install your package, you will have to use

        $(MAKE) install prefix=$(CURDIR)/debian/package/usr
        $(MAKE) -C subdir install prefix=$(CURDIR)/debian/package/usr

For a few (usually big/complicated) programs, "prefix=" doesn't work
and you have to use "DESTDIR=" instead. If the package's Makefile
mentions "DESTDIR" anywhere, use:

        $(MAKE) install DESTDIR=$(CURDIR)/debian/package
        $(MAKE) -C subdir install DESTDIR=$(CURDIR)/debian/package

BTW, it'd be cool if dh_make auto-detected the use of DESTDIR!

Cheers,

  Richard

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



Reply to: