help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Common Dependences


From: Rolf Magnus
Subject: Re: Common Dependences
Date: Mon, 18 Jul 2005 01:00:34 +0200

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)



reply via email to

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