Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2001 22:32:55 +0100
From:      Wolfram Schneider <wosch@panke.de.freebsd.org>
To:        Nik Clayton <nik@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: www/en/docs Makefile
Message-ID:  <20010304223255.A1254@paula.panke.de.freebsd.org>
In-Reply-To: <200102241804.f1OI4Ap34648@freefall.freebsd.org>; from nik@FreeBSD.org on Sat, Feb 24, 2001 at 10:04:10AM -0800
References:  <200102241804.f1OI4Ap34648@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2001-02-24 10:04:10 -0800, Nik Clayton wrote:
> nik         2001/02/24 10:04:10 PST
> 
>   Modified files:
>     en/docs              Makefile 
>   Log:
>   unset(1) returns '1' if the variable doesn't exist, so use the '||'
>   operator rather than the '&&' operator.

this is hard to read shell code:

all install clean:
        (cd ../../../doc/en_US.ISO_8859-1 && unset DESTDIR || ${MAKE} FORMATS=ht
ml-split DOCDIR=${DESTDIR}/data/docs ${.TARGET})

what does it mean?

1. unset the variable DESTDIR and execute the targets in the 
   directory ../../../doc/en_US.ISO_8859-1

2. build the targets in the directory ../../../doc/en_US.ISO_8859-1
   only if the variable DESTDIR is not set

3. override the environment variable DESTDIR, but not the
   make variable DESTDIR

4. ???

-Wolfram

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010304223255.A1254>