Bug 32759

Summary: [PATCH] make(1) System V include behaviour differs
Product: Base System Reporter: Mark Valentine <mark>
Component: binAssignee: Juli Mallett <jmallett>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Mark Valentine 2001-12-12 18:30:00 UTC
	make(1) looks first for files "included" using the System V syntax
	relative to the directory of the including makefile.

	Sun's make and GNU make both look relative to the current directory.

Fix: The following patch has been lightly tested.
How-To-Repeat: 	$ cd /tmp
	$ cat >test.mk
	include t/foo.mk
	$ mkdir t
	$ cat >t/foo.mk
	include bar.mk
	$ cat >t/bar.mk
	all::
		@echo Not OK
	$ cat >bar.mk
	all::
		@echo OK
	$ make -f test.mk
	Not OK
	$ gmake -f test.mk
	OK
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2001-12-30 12:29:51 UTC
Responsible Changed
From-To: freebsd-bugs->will

Will, are you still looking after BSD make?
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2001-12-31 09:08:31 UTC
Responsible Changed
From-To: will->freebsd-bugs

Will's no longer interested in BSD make.
Comment 3 matt 2002-01-13 05:36:09 UTC
This looks fine.

--
Matt Emmerton
Comment 4 Juli Mallett freebsd_committer freebsd_triage 2002-07-26 22:41:18 UTC
Responsible Changed
From-To: freebsd-bugs->jmallett

I'll take responsibility for this...
Comment 5 Juli Mallett freebsd_committer freebsd_triage 2002-10-23 02:58:13 UTC
State Changed
From-To: open->patched

Committed to -CURRENT, thanks!
Comment 6 Juli Mallett freebsd_committer freebsd_triage 2003-06-04 13:10:32 UTC
State Changed
From-To: patched->closed

Change will not be MFC'd, it seems.