help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

computed variable names in prerequisite "$$*"


From: Martin d'Anjou
Subject: computed variable names in prerequisite "$$*"
Date: Thu, 12 Jan 2006 15:47:36 -0500 (EST)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]