help-make
[Top][All Lists]
Advanced

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

do phony deps take "precedence" over regular deps?


From: Robert P. J. Day
Subject: do phony deps take "precedence" over regular deps?
Date: Mon, 7 Feb 2005 09:54:41 -0500 (EST)

  in the latest edition of "managing project with gnu make" from
o'reilly, on p. 14, there is a makefile snippet i had never noticed
before:

$(Program): build_msg (OBJECTS) $(BUILTINS_DEP) ...
        ... regular commands here ...

.PHONY: build_msg
build_msg:
        @printf ... building $(Program) ...

the text reads:

  "Because the printf is in a phony target, the message is printed
immediately before any prerequisites are updated."

really?  does being a phony target move you to the front of the list
for processing, chronologically speaking?  i had never read that
before.  clarification, someone?

rday




reply via email to

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