From owner-freebsd-hackers Tue Mar 4 02:44:16 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA15130 for hackers-outgoing; Tue, 4 Mar 1997 02:44:16 -0800 (PST) Received: from lassie.eunet.fi (lassie.eunet.fi [192.26.119.7]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id CAA15119 for ; Tue, 4 Mar 1997 02:44:09 -0800 (PST) Received: from marathon.tekla.fi by lassie.eunet.fi with SMTP id AA25067 (5.67a/IDA-1.5 for ); Tue, 4 Mar 1997 12:44:00 +0200 Received: from poveri.tekla.fi by marathon.tekla.fi (5.65/20-jun-90) id AA23238; Tue, 4 Mar 1997 12:43:58 +0200 From: sja@tekla.fi (Sakari Jalovaara) Received: by poveri.tekla.fi; (5.65v3.2/1.1.8.2/20Aug96-0557PM) id AA21471; Tue, 4 Mar 1997 12:43:58 +0200 Date: Tue, 4 Mar 1997 12:43:58 +0200 Message-Id: <9703041043.AA21471@poveri.tekla.fi> To: hackers@freebsd.org Subject: Re: 2.2-GAMMA - gdb.1 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In a thread in current@freebsd.org: >>>> make: don't know how to make gdb.1. Stop >>>> *** Error code 2 >>> >>> Have you removed you stale .depend files? > > ...Maybe this confused the make system... Old .depend files seem to cause problems from time to time. Would it be possible to make "make" print out _why_ it wants to make a given file? The above error message would tell you "I want to make gdb.1 because /usr/obj/contrib/gnu/gdb/.depend tells me to". "make" would need to backtrack and print out its dependency tree when an error occurs. Maybe something like make: don't know how to make foo.y. "foo.y" is needed to make "y.tab.c" (rule in /usr/share/mk/make-rules line 10) "y.tab.c" is needed to make "y.tab.o" (rule in /usr/obj/bin/frobozz/.depend line 2) "y.tab.o" is needed to make "frobozz" (rule in /usr/src/bin/frobozz/Makefile line 10) "frobozz" is needed to make "all" (rule in /usr/src/bin/frobozz/Makefile line 7) I tried looking at the "make" sources but couldn't quite figure out how the dependency tree structure works... Any "make" hackers out there? Would this even be *possible*? ++sja