Date: Mon, 5 Sep 2005 21:29:46 +0200 From: Emanuel Strobl <Emanuel.strobl@gmx.net> To: freebsd-current@freebsd.org, Harti Brandt <harti@freebsd.org> Cc: freebsd-questions@freebsd.org Subject: Re: make ".if exists" problem/question Message-ID: <200509052129.55689@harrymail> In-Reply-To: <20050905175143.M58682@beagle.kn.op.dlr.de> References: <200508251951.37319@harrymail> <200508252037.04779@harrymail> <20050905175143.M58682@beagle.kn.op.dlr.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1300833.6KilASyrJD Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Montag, 5. September 2005 18:03 CEST schrieb Harti Brandt: > On Thu, 25 Aug 2005, Emanuel Strobl wrote: [...] > > You should think of .if and .for as "preprocessor directives". They are > processed when make reads the makefile and builds the dependency graph. > If you need something more dynamic you must use either a shell line: > > foo: > if [ -f baz ] ; then ... > > or go with sub-makes. > > Generally you don't want to use .if to check for a file that your > makefile creates. In this case you just should use make itself. Given > that the tree you need to have is named 'tree' do something like: > > installcfworld: tree > ... > > installcfconfig: tree > ... > > tree: > mkdir tree > ... Thanks, I understood it, and the project grew fine. Will be available this= =20 week :) =2DHarry > > harti > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" --nextPart1300833.6KilASyrJD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDHJyzBylq0S4AzzwRAp6OAJ9cmzCN+TcLVg1rh4rNHc7Os/G7KgCfW2e6 U7uuPg/+JhseKLtDK48cdM8= =dDiW -----END PGP SIGNATURE----- --nextPart1300833.6KilASyrJD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509052129.55689>