From owner-freebsd-current Wed Oct 9 08:36:29 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA02710 for current-outgoing; Wed, 9 Oct 1996 08:36:29 -0700 (PDT) Received: from eel.dataplex.net (eel.dataplex.net [208.2.87.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA02702; Wed, 9 Oct 1996 08:36:26 -0700 (PDT) Received: from [208.2.87.4] (cod [208.2.87.4]) by eel.dataplex.net (8.7.5/8.7.3) with ESMTP id KAA29142; Wed, 9 Oct 1996 10:36:23 -0500 (CDT) X-Sender: rkw@eel.dataplex.net Message-Id: In-Reply-To: <199610091312.PAA01354@campa.panke.de> References: <199610082021.WAA06329@campa.panke.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 9 Oct 1996 10:34:03 -0500 To: Wolfram Schneider From: Richard Wackerbarth Subject: Re: .depend Cc: Steve Price , current@freebsd.org Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Richard Wackerbarth writes: >>>I think we should add an enviroment variable (e.g. DEPENDFILE) to >>>make(1) for `.depend'. mkdep -f foo support different depend files. >> >>Why change "make"? > >Because .depend is wired in make(1). There is no way >to stop make(1) to read .depend if exists. There is no way >to use an other depend file, e.g. `.depend.i486' or >`.depend.hostname'. > >Example >$ mkdep >$ mkdep -f .depend.debug -DDEBUG >$ mkdep -f .depend.i386 -Di386 > >You can now include .depend.debug in ./Makefile, but make(1) also >read .depend because it exists. In general, including ".depend" would not break anything. ".depend.debug" would simply make it redundant. If this is not the case, you probably should not generate it in the first place. You also could pass the name of the desired depend file from the command line. However, IMHO, this is not really the proper usage. The .depend files are derived from the sources under the direction of the command line flags. The resulting objects should be placed in differect directories. The .depend file that corresponds to that set of objects should be placed in the directory with the objects rather than in the sources. IMHO, this entire discussion results from a fundamental error in the methodology of building multiple versions from a single set of sources. Rather than "kluge" something else into "make" so you can "get by", we should fix the methodology.