j...@acorntoolworks.com (J.T. Conklin) writes:
> I've never seen .PHONY used in this way, but from the gmake -d output
> I see it indeed does what he claims.  Are there any reason why not to
> use .PHONY this way?  Is there a better idiom to use to avoid rebuilds
> of Makefile fragments.

To answer my own question, I found that using .PHONY like this will
cause include to act like -include if the Makefile fragment doesn't
exist.  I also found the suggestion to use an Empty Command in the
Remaking Makefiles section of the documentation that I overlooked
earlier this morning.

    --jtc

-- 
J.T. Conklin

_______________________________________________
Help-make mailing list
Help-make@gnu.org
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to