Subject: Re: make fails to execute ./fred because of a chdir()
To: None <>
From: Christos Zoulas <>
List: tech-toolchain
Date: 12/14/2002 14:46:10
In article <>,
David Laight <> 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...