Subject: Re: getting /usr/bin/make out of compatibility mode?
To: None <>
From: Christos Zoulas <>
List: current-users
Date: 12/30/2004 04:42:36
In article <>,
J Chapman Flack <> wrote:
>I just noticed this in 2.0 - maybe it was true before and I never noticed:
>$ cat Makefile
>foo : bar
>        echo $$$$
>        echo $$$$
>        cd /tmp
>        pwd
>$ make
>echo $$
>echo $$
>cd /tmp
>make: exec(cd) failed (No such file or directory)
>*** Error code 1
>That looks like old-style compatibility behavior, so I guess that's the
>default--but neither 'man make' nor /usr/share/doc/psd/12.make/
>quite told me that.  I did see in 'man make' that -j will turn compatibility
>mode off, and that works:

Yes, compatibility mode is - and has been - the default since pmake was brought
to BSD. It is there so that old Makefiles that expect each command to 
be executed in a separate shell to work. Consider:

	cd foo && make
	cd bar && make