Xref: utzoo comp.unix.questions:30942 comp.unix.wizards:25332 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!cs.utexas.edu!uunet!cacilj!jurgen From: jurgen@cacilj.UUCP (Jurgen Heymann) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Make question concerning "$$@" Keywords: make Message-ID: <1499@cacilj.UUCP> Date: 1 May 91 16:35:46 GMT Organization: CACI Products Company, La Jolla, CA Lines: 29 It seems that string replacement doesn't work for "$$@"! I am trying to write make files for the following situation: - source files are in one directory - object files and targets are in a SUBdirectory of the sources (one subdir for each different machine we compile for). THe MAKEFILE is in this object directory. In a makefile I want to say that the object files depend on the source files in the parent dir. I write: $(SRCFILES:.c=.o) : ../$($@:.o=.sim) but that gives funny values for $$@ (try make -d) and "$$(@:.o=.sim)" doesn't work (syntax error from make). When I just write "$$@", I of course get the object file for $$@. What can I do? Thanks for any help. - Jurgen Heymann -- ---------------------------------------------------------------- Jurgen Heymann CACI Products jurgen@cacilj.cts.com 3344 N. Torrey Pines Ct La Jolla, CA 92037