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: Ken Smith
Subject: Re: var used by implicit rule
Date: Mon, 21 Jun 2004 17:02:10 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Paul D. Smith wrote:

%% bertold <address@hidden> writes:

  b> I believe, i am not using H file as a prerequisite.

Mmm.  Yes.  In this case the problem is that make is not trying to build
the .tab.h file at all.  All make really wants to build is the .c file,
so it ignores the .h file completely.  It could be argued that make
should treat the .h file as an intermediate file as will in this
situation, but that's not what it does.

However, using .INTERMEDIATE will work (but, you have to give the actual
filename not a pattern).

I have created a small example along these lines that is not behaving as I expect. The following is properly deleting document.css but it isn't deleting index.html. Is there a requirement that the intermediate file specified by .INTERMEDIATE: must be a wildcard target or dependency in a pattern rule?

---Makefile---
all: document.html

.INTERMEDIATE: document.css
.INTERMEDIATE: index.html
index.html %.css %.html: %.tex
        latex2html -split 0 -no_navigation -show_section_numbers -nosubdir $<





reply via email to

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