[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make install modifying
On Wed, Nov 20, 2002 at 10:33:49AM -0500, Jeff Licquia wrote:
> On Tue, 2002-11-19 at 16:39, Danny Sauer wrote:
> > Presently, I'm setting up a netboot system (several), and am finding it
...
> > Is there a reasonably standard way to make "make install" assume a
> > sort-of chroot-like environment when installing? I can copy the
> > binaries by hand, but that's time-consuming, and doesn't have the
> > handy side-effect of creating default config files, server keys, etc.
>
> Most autotools-based projects support a variable called DESTDIR, which
> performs the same function as a "chroot" thing for the build. To use
> it, just give DESTDIR to make when doing the make install. So:
>
> ./configure --prefix=/usr
> make
> make install DESTDIR=/netboot/common/root
>
> That should install the files to /netboot/common/root/usr, but work
> properly. It'll also probably trigger the detection code in your
> configure script to put config files in /etc instead of /usr/etc and so
> on.
Yay!
Is there some documentation on that whole autotools system? Mozilla's
crashed the last two times I've searched for "autotools" with google,
so I'm thinking that it might have something against lettign me learn. :)
Thanks.
--Danny
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.