[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: some newbie-level questions (some style issues as well)
From: |
Noel Yap |
Subject: |
Re: some newbie-level questions (some style issues as well) |
Date: |
Mon, 15 Dec 2003 09:41:09 -0500 |
"Robert P. J. Day" wrote:
>
> a couple more questions about gnu make -- i apologize for having a non-
> specific subject since there's more than one question.
>
> 1) what is the recommended style for defining phony targets, as in, where
> does one actually define them? all at once at the top of the makefile, or
> one by one as they are defined?
>
> .PHONY: target1 target2 target3 ... and so on
>
> or should one pair them up as they occur, as in:
>
> .PHONY: clean
> clean:
> ... commands ...
>
> lile i said, it's just a style question.
I prefer the latter since it makes refactoring the makefiles much simpler.
Noel
--
NOTICE: If received in error, please destroy and notify sender. Sender does
not waive confidentiality or privilege, and use is prohibited.