Subject: Re: getting /usr/bin/make out of compatibility mode?
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 12/30/2004 05:15:33
In article <200412300459.iBU4xRUq021381@ector.cs.purdue.edu>,
J Chapman Flack <flack@cs.purdue.edu> wrote:
>> 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:
>> 
>> all:
>> 	cd foo && make
>> 	cd bar && make
>
>Sure, I understand what compatibility mode is for, it's just that I'm not
>writing old Makefiles, I'm writing new Makefiles, and I would like them to
>have the new behavior.  Is there anything I can put in the makefile to
>specify that I want new behavior, instead of always having to remember -j
>on the command line or in the environment?  I've tried:
>
>MAKEFLAGS += -j1
>
>and
>
>.MAKEFLAGS : -j1
>
>and neither one works.

It is too late at that point. You can setenv MAKEFLAGS -j1 before you invoke
it.

christos