Subject: Re: make fails to execute ./fred because of a chdir()
To: None <tech-toolchain@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-toolchain
Date: 12/14/2002 14:46:10
In article <20021213222537.D234@snowdrop.l8s.co.uk>,
David Laight <david@l8s.co.uk> wrote:
>> This is a `feature'
>
>I had a horrid feeling that it was.
>
>> printf 'all:\n\t${.CURDIR}/do_echo' > Makefile
>
>That involves patching makefiles that work on every? other
>system I've seen.
>
>Wouldn't it have been better to require a .OBJDIR (or similar)
>command in the makefile itself to enable this 'feature'?

A nice kludge is to setenv MAKEOBJDIR /does/not/exist...

>I've also used ${@F:.o=.c} with SYSV make to put object files
>into subdirectories.  Did have to fix the parseing of $${@F:.o=.c}
>first though...
>

christos