build system to DESTDIR

iiv at dom.raid.ru iiv at dom.raid.ru
Fri Jul 11 12:43:12 UTC 2008


> On Friday 11 July 2008 11:08:04 iiv at dom.raid.ru wrote:
>> To build system for the diskless station, whether there are
>> differences between:
>>
>> [in script]
>> #!/bin/sh
>> export DESTDIR=/usr/diskless
>> cd /usr/src; make buildworld
>>
>> and
>>
>> [in csh]
>> # setenv DESTDIR /usr/diskless
>> # cd /usr/src
>> # make buildworld
>
> There should not be a difference, but to rule out any shell issues,
> it is best
> to invoke:
> make buildworld DESTDIR=/usr/diskless
>
> Make itself then handles the variable.
>
> --
> Mel
>
> Problem with today's modular software: they start with the modules
>     and never get to the software part.
>

thanks,
I will try this method of installing the system in /usr/diskless:
# cd /usr/src
# make installworld DESTDIR=/usr/diskless
# make installkernel DESTDIR=/usr/diskless
# make distribution DESTDIR=/usr/diskless



More information about the freebsd-questions mailing list