help-make
[Top][All Lists]
Advanced

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

A question on implicit rules


From: Paolo Gai
Subject: A question on implicit rules
Date: Wed, 11 Feb 2004 12:22:29 +0100

Hi,

I noted the following behavior on GNU Make version 3.79.1, is it
correct?

- Case 1
---------------------------------------
The makefile is:

begin----------------------------
A%: B/C%D
        @echo A$*
 
B/C%D:
        @echo B/C$*D
end----------------------------

and the output is:

--------------------
address@hidden pj]$ make A2
B/C2D
A2
address@hidden pj]$
--------------------

- Case 2
---------------------------------------
The makefile is:

begin----------------------------
A%: B/C%D
 
B/C%D:
        @echo B/C$*D
end----------------------------

and the output is:

--------------------
address@hidden pj]$ make A2
make: *** No rule to make target `A2'.  Stop.
address@hidden pj]$
--------------------

What I'm doing wrong?

Thanks for all,

Paolo


-- 
-----------------------------------------------------------------------
Paolo Gai - ReTiS Lab - PhD Student

Scuola Superiore S. Anna        Tel       : +39 050 883 031 
Polo S. Anna Valdera            Fax       : +39 050 883 452
viale Rinaldo Piaggio 34        e-mail    : address@hidden
56025 - Pontedera (PI) - ITALY  home page : http://feanor.sssup.it/~pj
------------------------------------------------------------------------
Per favore non mandatemi allegati in Word o PowerPoint.
(Please avoid sending me Word or PowerPoint attachments.)
Si veda (See) http://www.fsf.org/philosophy/no-word-attachments.html
------------------------------------------------------------------------





reply via email to

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