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

Re: creating debs



On Mon, Jan 07, 2002 at 08:56:32PM +0100, Bart Schuller wrote:

> On Mon, Jan 07, 2002 at 05:27:12PM -0200, Gustavo Noronha Silva wrote:
> > $(MAKE) install prefix=$(CURDIR)/debian/packagename
> > 
> > and it should be:
> > 
> > $(MAKE) install prefix=$(CURDIR)/debian/packagename/usr
> 
> I prefer
> 
>     $(MAKE) install DESTDIR=$(CURDIR)/debian/packagename

And indeed, this is more correct, as it is exactly what DESTDIR is for.  The
previous example is an abuse of prefix.  Oddly enough, it does the right
thing for programs which do not use a configure script:

if (-x "./configure" )
{
[...]
   $INSTALL="\$(MAKE) install prefix=\$(CURDIR)/debian/$package_name";
[...]
} else {
[...]
    $INSTALL="\$(MAKE) install DESTDIR=\$(CURDIR)/debian/$package_name";

-- 
 - mdz



Reply to: