Make question concerning "$$@"

Jurgen Heymann jurgen at cacilj.UUCP
Thu May 2 02:35:46 AEST 1991


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 at cacilj.cts.com              3344 N. Torrey Pines Ct
				   La Jolla, CA 92037



More information about the Comp.unix.wizards mailing list