Re: prefix

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

 



Baurzhan Ismagulov wrote:
> Roesner Thomas wrote:
> > i want to configure my package without setting the --prefix option. By
> > default "make install" tries to copy libs and binaries to /usr/lib or
> > /usr/bin, but I need the files copied to ./bin and ./lib.
> > 
> > Can anybody tell me wich variable must be set to `pwd` within the
> > configure.in?
> 
> I use the following command:
> 
> make DESTDIR=`pwd` install
> 
> This is useful, e.g., while creating a package. However, this installs
> the files into ./usr/bin, etc. Does this suit your needs? I don't know
> how to do that from configure.in.

I believe setting prefix similarly would remove the prefix.  The
installation is to $DESTDIR/$prefix/bin and others.  So without
trying it I believe either of the following would work.

  make DESTDIR=$(pwd) prefix="" install

Or:

  make prefix=$(pwd) install

Bob


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux