bug-make
[Top][All Lists]
Advanced

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

Re: Bug#218367: make: strange behavior with multi-target rules


From: Ted Stern
Subject: Re: Bug#218367: make: strange behavior with multi-target rules
Date: Tue, 11 Nov 2003 09:44:43 -0800
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

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)





reply via email to

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