J
Jon Nicoll
Hi all
I'm looking for a feature or technique in GNU make - I'm not sure
what it might be called, and it might be achievable only in conjunction with
other techniques. This is OT except that (a) I'm doing this in conjunction
with a Python program, and (b) this newsgroup is full of people who might
well know the answer ;-)
Basically, I want to concatenate a series of targets in the parameters
of a rule command. As a f'rinstance: If I have a set of .A files, and
a (python!) script AtoB which generates .B files, such that
AtoB.py 1.A # creates 1.B
AtoB.py 2.A # creates 2.B
and
AtoB.py 1.A 2.A 3.A 4.A # creates 1.B, 2.B, 3.B and 4.B
My question is, how can I specify a makefile rule so that *all* of the
changed .A files are invoked on the AtoB command line - ie if 1.A, 2.A
and 3.A are newer than 1.B, 2.B, 3.B, I want make to invoke
AtoB.py 1.A 2.A 3.A 4.A
rather than
AtoB.py 1.A
AtoB.py 2.A
AtoB.py 3.A
Thanks for your thoughts.
Jon N
I'm looking for a feature or technique in GNU make - I'm not sure
what it might be called, and it might be achievable only in conjunction with
other techniques. This is OT except that (a) I'm doing this in conjunction
with a Python program, and (b) this newsgroup is full of people who might
well know the answer ;-)
Basically, I want to concatenate a series of targets in the parameters
of a rule command. As a f'rinstance: If I have a set of .A files, and
a (python!) script AtoB which generates .B files, such that
AtoB.py 1.A # creates 1.B
AtoB.py 2.A # creates 2.B
and
AtoB.py 1.A 2.A 3.A 4.A # creates 1.B, 2.B, 3.B and 4.B
My question is, how can I specify a makefile rule so that *all* of the
changed .A files are invoked on the AtoB command line - ie if 1.A, 2.A
and 3.A are newer than 1.B, 2.B, 3.B, I want make to invoke
AtoB.py 1.A 2.A 3.A 4.A
rather than
AtoB.py 1.A
AtoB.py 2.A
AtoB.py 3.A
Thanks for your thoughts.
Jon N