Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!voder!berlioz.nsc.com!nelson From: nelson@berlioz.nsc.com (Taed Nelson) Newsgroups: comp.unix.questions Subject: MAKE -- dependent dependencies Message-ID: <1991Apr26.160811.17441@berlioz.nsc.com> Date: 26 Apr 91 16:08:11 GMT Sender: news@berlioz.nsc.com Distribution: na Organization: PLD Software Group, National Semiconductor Co., Santa Clara, CA. Lines: 17 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