Subject: bin/15178: make(1) looks for `.include' files in wrong places
To: None <>
From: Paul Kranenburg <>
List: netbsd-bugs
Date: 01/08/2002 14:02:52
>Number:         15178
>Category:       bin
>Synopsis:       make(1) looks for `.include' files in wrong places
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 08 05:04:00 PST 2002
>Originator:     Paul Kranenburg
>Release:        NetBSD-current Jan 2002
	make(1) goofs when constructing file system paths to search for 
	makefiles to be included using the `.include' syntax.

		- when object dirs are in use or nested includes nested
		  includes are being processed involving files not
		  residing in .CURDIR, make(1) constructs path by
		  prepending .CURDIR twice!
		- inclusion of an absolute path name (e.g. /etc/mk.conf)
		  still causes it to be searched first relative to all
		  include directories make knows about.
	run `make -dA' on any Makefile using .include.
	none provided.
	Yet I note that these particular problems (but not those mentioned
	in PR15163) appeared with revision 1.27 of src/usr.bin/make/dir.c