MAKE -- dependent dependencies
Taed Nelson
nelson at berlioz.nsc.com
Sat Apr 27 02:08:11 AEST 1991
I would like to make a makefile entry that has the effect of:
%.1: program %.2 %.3
According to the man page, the multiple '%'s on the RHS is illegal, and MAKE
complains about it too (although it mistakenly claims the LHS is the source of
the problems).
So, all I could think of was to try:
%.1: program $($$@:%.1=%.2) $($$@:%.1=%.3)
but that seems to have the same effect as
%.1: program
Does anyone know the 'right' way to do this, or how to properly use $$@?
Just so no one mistakenly "corrects" me, the man page entry states:
To refer to the $@ dynamic macro within a dependency list, precede the
More information about the Comp.unix.questions
mailing list