From owner-freebsd-current Wed Oct 9 08:12:49 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA00476 for current-outgoing; Wed, 9 Oct 1996 08:12:49 -0700 (PDT) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [204.214.4.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA00312; Wed, 9 Oct 1996 08:11:22 -0700 (PDT) Received: from bonsai.hiwaay.net by fly.HiWAAY.net; (8.7.5/1.1.8.2/21Sep95-1003PM) id KAA15145; Wed, 9 Oct 1996 10:11:13 -0500 (CDT) Message-ID: <325BC094.1F74CF80@hiwaay.net> Date: Wed, 09 Oct 1996 10:11:16 -0500 From: Steve Price X-Mailer: Mozilla 2.02 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Wolfram Schneider CC: current@freebsd.org Subject: Re: .depend References: <199610082021.WAA06329@campa.panke.de> <199610091312.PAA01354@campa.panke.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Wolfram Schneider wrote: > > 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. > > Wolfram Then the best thing would be to take the hard-coded value of .depend out of make and put a rule in one of the *.mk files. IMHO including .depend as a rule in make is not good. make should be a generic tool that can be used in any environment for doing everything from writing books to writing software. Adding another hard-coded rule/value in make(1) makes it even more biased in the build/maintenance of software programs. I would be happy (if there are no strong objections) to remove the rule from make and put it in one of the *.mk files, but I really don't think always including .depend* files from within make are the best answer for a generic build tool. Just my opinion, Steve