Date: Sun, 1 Feb 2004 17:19:13 -0500 From: parv <parv@pair.com> To: f-stable <freebsd-stable@freebsd.org> Subject: Re: "make -C ..." causes error in net/tkabber/Makefile, line 17 Message-ID: <20040201221913.GB94541@moo.holy.cow> In-Reply-To: <20040201220142.GA94541@moo.holy.cow> References: <20040201213549.GA93666@moo.holy.cow> <20040201220142.GA94541@moo.holy.cow>
next in thread | previous in thread | raw e-mail | index | archive | help
(Removed -ports list)
in message <20040201220142.GA94541@moo.holy.cow>,
wrote parv thusly...
>
> in message <20040201213549.GA93666@moo.holy.cow>,
> wrote parv thusly...
> >
> > I am running FreeBSD 4.8-p14; and the make(1) man page lists -C
> > option...
> >
> > -C directory
> > Change to directory while running.
...
> > make: illegal option -- C
> > usage: make [-Beiknqrstv] [-D variable] [-d flags] [-E variable] [-f makefile]
> > [-I directory] [-j max_jobs] [-m directory] [-V variable]
> > [variable=value] [target ...]
...
> On the second thought, could it be that man page & binary are out of
> sync for some reason? It is hard to believe though as -C option
> parsing appears in src/usr.bin/make/main.c, line 185...
>
> 178 #ifdef REMOTE
> 179 # define OPTFLAGS "BD:E:I:L:PSV:Xd:ef:ij:km:nqrstv"
> 180 #else
> 181 # define OPTFLAGS "BD:E:I:PSV:Xd:ef:ij:km:nqrstv"
> 182 #endif
> 183 rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) {
> 184 switch(c) {
> 185 case 'C':
>
> ...but is omitted from OPTFLAGS (lines 179 & 181). Is that the reason
> of make carping when presented w/ -C option?
Ah, never mind; i solved the problem by hand patching main.c, w/
help of...
http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/make/main.c.diff?r1=1.35.2.8&r2=1.35.2.9&f=u
...Should i file a PR to remove useless -C option from man page for
4.8-p14 ?
- Parv
--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040201221913.GB94541>
