> >
> > Now, this was observed on OpenBSD 5.8, but a search for the changes and
> > fixes between that version and 6.0 doesn't show any changes for make.
> >
> > >How-To-Repeat:
> > === TEST MAKEFILE ===
> > a.o: # just touch 'a.c' before running this makefile
> >
> > .c.o:
> > cd $(<D) && $(CC) $(cflags) -c $(<F)
> > === END TEST MAKEFILE ===
Or you replace ${<D} with ${<:H} and ${<F} with ${<:T}. That should be
equivalent. This works on netbsd and freebsd make too, but not gmake
though.
.c.o:
cd ${<:H} && ${CC} ${cflags} -c ${<:T}