From owner-freebsd-stable@FreeBSD.ORG Sun Feb 1 14:02:00 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABD4B16A4CF; Sun, 1 Feb 2004 14:02:00 -0800 (PST) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F90443D2F; Sun, 1 Feb 2004 14:01:53 -0800 (PST) (envelope-from parv_fm@mailsent.net) Received: from moo.holy.cow ([69.160.71.102]) by mta10.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040201220202.PDHX9070.mta10.adelphia.net@moo.holy.cow>; Sun, 1 Feb 2004 17:02:02 -0500 Received: by moo.holy.cow (Postfix, from userid 1001) id AB9D6BA3B; Sun, 1 Feb 2004 17:01:42 -0500 (EST) Date: Sun, 1 Feb 2004 17:01:42 -0500 From: parv To: f-ports , f-stable Message-ID: <20040201220142.GA94541@moo.holy.cow> Mail-Followup-To: f-ports , f-stable References: <20040201213549.GA93666@moo.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040201213549.GA93666@moo.holy.cow> Subject: Re: "make -C ..." causes error in net/tkabber/Makefile, line 17 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 22:02:00 -0000 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. > > > ...However, "make -V PORTVERSION" in net/tkabber" produces this... > > 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': 186 if (chdir(optarg) == -1) 187 err(1, "chdir %s", optarg); 188 break; ...but is omitted from OPTFLAGS (lines 179 & 181). Is that the reason of make carping when presented w/ -C option? - Parv --