Date: Tue, 03 Mar 1998 22:46:04 -0800 (PST) From: Donald Burr <dburr@POBoxes.com> To: Brian Handy <handy@sag.space.lockheed.com> Cc: freebsd-ports@FreeBSD.ORG Subject: RE: NOPORTDOCS question Message-ID: <XFMail.980303224604.dburr@POBoxes.com> In-Reply-To: <Pine.OSF.3.96.980303205951.10001A-100000@sag.space.lockheed.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <dburr@POBoxes.com> - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980303224604.dburr>