Hi,

I do not understand why make says "No rule to make target" with this makefile when the target is t_two:

$(shell mkdir -p src)
$(shell touch src/file1.c)
$(shell touch src/file2.c)
var_one=file1
var_two=file1 file2

t_%: $(patsubst %,src/%.o,$$(var_$$*))
        echo Done t

%.o: %.c
        cp $*.c $*.o


make t_one
--->> Make builds file.o

make t_two
No rule to make target `t_two'

This is with 3.81beta3.

With 3.81beta4, in both cases make does not build the targets. Should make be able to build these targets?

Thanks,
Martin


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to