From owner-freebsd-current@FreeBSD.ORG Mon Sep 5 19:30:03 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44F1B16A41F for ; Mon, 5 Sep 2005 19:30:03 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 7323B43D49 for ; Mon, 5 Sep 2005 19:30:00 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 05 Sep 2005 19:29:59 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp017) with SMTP; 05 Sep 2005 21:29:59 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-current@freebsd.org, Harti Brandt Date: Mon, 5 Sep 2005 21:29:46 +0200 User-Agent: KMail/1.8.1 References: <200508251951.37319@harrymail> <200508252037.04779@harrymail> <20050905175143.M58682@beagle.kn.op.dlr.de> In-Reply-To: <20050905175143.M58682@beagle.kn.op.dlr.de> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1300833.6KilASyrJD"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200509052129.55689@harrymail> X-Y-GMX-Trusted: 0 Cc: freebsd-questions@freebsd.org Subject: Re: make ".if exists" problem/question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2005 19:30:03 -0000 --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--