From owner-freebsd-ports Tue Mar 3 22:46:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA07148 for freebsd-ports-outgoing; Tue, 3 Mar 1998 22:46:00 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from colossus.dyn.ml.org (dburr@206-18-115-28.la.inreach.net [206.18.115.28]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA07087 for ; Tue, 3 Mar 1998 22:45:32 -0800 (PST) (envelope-from dburr@colossus.dyn.ml.org) Received: (from dburr@localhost) by colossus.dyn.ml.org (8.8.7/8.8.7) id WAA08773; Tue, 3 Mar 1998 22:46:06 -0800 (PST) (envelope-from dburr) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Description: signed PGP message Content-Transfer-Encoding: 8bit Content-Type: application/pgp; format=text; x-action=sign MIME-Version: 1.0 In-Reply-To: Date: Tue, 03 Mar 1998 22:46:04 -0800 (PST) Organization: Starfleet Command From: Donald Burr To: Brian Handy Subject: RE: NOPORTDOCS question Cc: freebsd-ports@FreeBSD.ORG Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- My secret spy satellite informs me that on 04-Mar-98, Brian Handy wrote: > --> I thought it'd be pretty neat to just do something like: > > subdirs = tools wlib > .ifndef ${NOPORTDOCS} <-- (Line #45) > subdirs += doc > .endif > > > However, when I do this I get: > > %gmake > GNUmakefile:45: *** missing separator. Stop. GNU make uses a different syntax for conditional stuff. Read the gnu make info file for more info. I think it goes something like this: ifdef NOPORTDOCS blahblahblah else woofwoofwoof endif But that's not the real problem. The real problem is that the value of NOPORTDOCS isn't propagated down to the gmake process (at least I don't think so -- when I tried it it didn't work). The only way I found of Ydoing this is to do it in the post-install target in the port makefile. See my port emulators/xmame for an example. - --- Donald Burr - Ask me for my PGP key | PGP: Your WWW HomePage: http://DonaldBurr.base.org/ ICQ #1347455 | right to Address: P.O. Box 91212, Santa Barbara, CA 93190-1212 | 'Net privacy. Phone: (805) 957-9666 FAX: (800) 492-5954 | USE IT. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNPz4rPjpixuAwagxAQGKzAP+JLw58OlGCtuORrFkKt80zEXAG005hTD6 AWvoc0D0QMzUDa0U/DR85Vk+0fRbMoPxJiaF6D5OGC5cMex3x/bgcv6MOhbw7nhG 96Yah0wRWKwqLuIQ/mMaiaTPPpaHYt8XlEQD3tFPPLgiZKTJ8i9gX0rNIxUFcePn k8FVxJHtR9Y= =xEoI -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message