help-make
[Top][All Lists]
Advanced

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

Re: var used by implicit rule


From: Paul D. Smith
Subject: Re: var used by implicit rule
Date: Mon, 21 Jun 2004 01:16:51 -0400

%% bertold <address@hidden> writes:

  b> Ok. So i fix it to
  b> .INTERMEDIATE: %.tab.h

You cannot use pattern matching in prerequisites of .INTERMEDIATE.  This
line says that a file named, literally, '%.tab.h' is to be treated as
intermediate.

  b> %.tab.c %.tab.h : %.y
  b> $(BS) $(BSFLAGS) $^

  b> It is still deletes only C file.

This is because somewhere in your makefile you actually use xxx.tab.h as
a prerequisite or target, while the same is not true of the .c file.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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