On 10 Nov 2003, Manoj Srivastava wrote:
>
> Surprise #3: refactor like this
>
> $(TEX) : junk
>
> junk: $(SOURCES)
> ./bin/plit -n $(SOURCES)
>
> touch Blah.sml. Now make modules.tex runs the last rule (once), but
> not the first rule (for modules.tex itself), even though it clearly is
> out of date!
In this case, make needs to build junk before it can build $(TEX). But the
rule for junk doesn't actually build a file. So $(TEX) can't be built.
Try declaring junk as a .PHONY target:
.PHONY: junk
For better debugging of your problem, try running make with the -d flag.
Ted
--
Ted Stern Applications Group
Cray Inc. office: 206-701-2182
411 First Avenue South, Suite 600 cell: 206-383-1049
Seattle, WA 98104-2860 FAX: 206-701-2500
Frango ut patefaciam -- I break that I may reveal
(The Paleontological Society motto, equally apropos for debugging)
_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make