bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variable substitution in gmake


From: Andreas Schwab
Subject: Re: variable substitution in gmake
Date: Wed, 15 May 2002 13:16:58 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (ia64-suse-linux)

address@hidden (Jean-Max Reymond) writes:

|> I have some troubles with Gnu gmake 3.79.1 on Linux platform. All is
|> correct on AIX and True64 platform's with preinstalled make.
|> 
|> I have two directories Src and Copy
|> 
|> touch Copy/jmax.tab Src/jmaxDATACC.o
|> 
|> and in Src, I have a Makefile which contains the following rules:
|> 
|> OBJ= jmaxDATACC.o
|> lib : ${OBJ}
|> 
|> $(OBJ): ../Copy/$(@:DATACC.o=.tab)
|>      echo $@

Use a pattern rule:

$(OBJ): %DATACC.o: ../Copy/%.tab
        echo $@

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]