Paul D. Smith wrote:

%% bertold <[EMAIL PROTECTED]> 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 $<



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to