From owner-freebsd-current@FreeBSD.ORG Sun Jan 25 07:18:06 2004 Return-Path: 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 5D3BE16A4CF for ; Sun, 25 Jan 2004 07:18:06 -0800 (PST) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F3B143D49 for ; Sun, 25 Jan 2004 07:18:04 -0800 (PST) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id 8BE6BFEC1; Sun, 25 Jan 2004 16:18:02 +0100 (CET) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) i0PFIOYn080281 for ; Sun, 25 Jan 2004 16:18:24 +0100 (CET) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.12.10/8.12.10/Submit) id i0PFIOSm080280 for current@freebsd.org; Sun, 25 Jan 2004 16:18:24 +0100 (CET) (envelope-from schweikh) Date: Sun, 25 Jan 2004 16:18:24 +0100 From: Jens Schweikhardt To: current@freebsd.org Message-ID: <20040125151824.GA79958@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1i Subject: make(1) and SUBDIR assignments X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 25 Jan 2004 15:18:06 -0000 hello, world\n I'm trying to selectively install binaries in the source tree, i.e. to only install bin/dd and bin/df this is what I hoped would work: root@hal9000:/usr/src # make buildworld # succeeds root@hal9000:/usr/src # cd bin root@hal9000:/usr/src/bin # make install SUBDIR='dd df' But it fails: ===> dd "/usr/share/mk/bsd.subdir.mk", line 60: Inconsistent operator for dd "/usr/share/mk/bsd.subdir.mk", line 66: warning: duplicate script for target "dd" ignored make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /share/HEAD/src/bin. (-CURRENT sources and /usr/share/mk/* as of today). Is this 1) a bug somewhere (though nothings seems to be wrong with bsd.subdir.mk) 2) me being confused about how SUBDIR is intended to be used 3) something else Yes, I know I can workaround by cd /usr/src/bin/dd; make install cd /usr/src/bin/df; make install But why do all the src/*/Makefiles assign the list of subdirs to SUBDIR and DTRT, but I can't from the outside? Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)