>>>>> "Allan" == Allan Clark <[EMAIL PROTECTED]> writes:
>> Add .x to SUFFIXES, the write rules to generate the .c files from .x.
>> Since you want to generate at least 2 files from the same .x, you
>> won't be able to use implicit rules (such as `.c.x:').
Allan> rpcgen usually has the command-line options for generating
Allan> single individual files -- rpcgen -[cmlh] <xdrfile.x>, but it
Allan> generates them to stdout. I usually use:
Allan> %_rpc.h: %_rpc.x
Allan> %_rpc_xdr.c: %_rpc.x
Allan> %_rpc_svc.c: %_rpc.x
Allan> %_rpc_clnt.c: %_rpc.x
"%" rules aren't portable. They are a GNU make extension.
One idea would would be to have automake understand something like "%"
rules and automatically expand them into the precise dependencies
required. This would be useful in situations like this -- the right
thing would happen automatically and portably.
It is very unlikely I'll implement this, given my general inability to
find time to do automake hacking these days. However, I'd check in a
clean patch to implement this.
Tom