[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dependency problem
From: |
Stephan Beal |
Subject: |
Re: dependency problem |
Date: |
Thu, 28 Jun 2007 14:16:50 +0200 |
User-agent: |
KMail/1.9.7 |
On Thursday 28 June 2007, Philip Guenther wrote:
> foo.o: foo.c foo.h bar.h
>
> to:
>
> foo.o: foo.c foo.h bar.h
> foo.c foo.h bar.h:
>
> Simply mentioning the files as targets keeps make from complaining or
> doing anything when those files don't exist**.
According to "Managing Projects with GNU Make", the section about deps
gen addresses this problem and says (amongst other things):
-----------
The -MP option instructs gcc to include phony targets for each
prerequisite. This completely eliminates the messy five-part sed
expression in our make-depend function. It seems that the automake
developers who invented the phony target technique caused this option
to be added to gcc.
-----------
If you'll grab:
http://wh/computing/make/book/ManagingProjectsWithGNUMake-3.1.2.odt
(250k, ODT format)
or:
http://wh/computing/make/book/ManagingProjectsWithGNUMake-3.1.2.pdf
(1.2MB, PDF)
that topic is discussed starting on in section 10.3.1, page 110.
i hope that helps,
--
----- stephan beal
http://www.wanderinghorse.net
signature.asc
Description: This is a digitally signed message part.