[Top][All Lists]

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

Hacking rules - only for experts.

From: Eitan Rabin
Subject: Hacking rules - only for experts.
Date: Mon, 13 May 2002 14:35:57 +0300

Is there a way that something like this will work?

myprog_SOURCE = a.c b.c c.c
hisprog_SOURCE = x.c y.c z.c

TARGET = myprog hisprog

$(TARGET): % : $(%_SOURCE)
        $(CC) -o $@ $^

For some reason %_SOURCE has the right value but $(%_SOURCE) is not being replaced.

Is there a similar way to do this?

Thanks in advance.

reply via email to

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