Steven Woody wrote:

> hi,
> 
> if i have many targets which all depend on some common files, which is a
> easy way to write the rule?  i don't like ugly code as below,
> 
> T1: a b c
> T2: a b c
> ...
> Tn: a b c

I guess you're talking about make?
Just put them in a variable:

COMMON = a b c
T1: $(COMMON)
T2: $(COMMON)
...
Tn: $(COMMON)

_______________________________________________
help-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to