From: utzoo!decvax!harpo!npois!ucbvax!ARPAVAX:CAD:teklabs!tekmdp!azure!stevenm Newsgroups: net.wanted Title: Re: WANTED: makefile trick Article-I.D.: azure.904 Posted: Fri Jun 4 09:59:22 1982 Received: Sat Jun 5 05:16:12 1982 Reply-To: p!azure!stevenm This has enough general interest that I thought I would publish it. To: tekmdp!teklabs!decvax!harpo!npois!alice!rabbit!mike Subject: Re: WANTED: makefile trick In-reply-to: Your news article rabbit.506 of Thu Jun 3 19:12:59 1982 ----------------- If you are running a system which can support the version of make(1) that was distributed to the world with System III (that is, post USG 3.0) then, look in "An Augmented Version of MAKE" by E.G. Bradford under the section "Synamic Dependecy Paramters". It says: "... $$@ refers to the current 'thing' on the left of the colon (which is $@). ...For instance the UNIX command directory could have the makefile: CMDS=cat dd echo date cc cmp comm ar chown $(CMDS): $$@.c $(CC) -O $? -o $@ " I hope this answers your question. By the way, what you are asking for is not possible, to the best of my knowledge, on pre-3.0 versions of Make. S. McGeady