Dear all,

should the following work , please see attached example makefile - and I'm overlooking something ?

'make x.bar' works
'make d/x.foo' works too, and the dir is created before the touch, as planned.

but 'make x/x.foo' doesn't, even if the subdir exists.

So, using % twice in a target doesn't work  - or I'm overlooking the obvious ?

TIA1e6, Pete
%/:
        mkdir $@

%/%.foo: %/
        touch $@

d/%.foo: %/
        touch $@

%.bar:
        touch $@
  • multiple ... Pete Bennewitz via Users list for the GNU implementation of make

Reply via email to