From: Junio C Hamano Date: Wed, 25 Aug 2010 22:53:17 GMT Subject: Re: Compiling git with makepp patch Message-ID: <7v8w3upan6.fsf@alter.siamese.dyndns.org> In-Reply-To: Andreas Schwab writes: >>> GNU make, unlike, say, pmake, reads all the rules before it runs >>> anything iirc. So you can have >>> >>> -include foo >>> >>> foo: >>> echo bar:>foo >>> echo ' echo hi'>>foo >>> >>> and it will cope okay. >> While that is not the usual use-case for -include, the file might very >> well define some macros, and the rest of the makefile, indeed the foo-rule >> itself might depend on those macros. > > GNU make will restart reading all makefiles when any of them was remade. I am not sure about the "reread" part, but shouldn't all POSIX compliant make be topology driven (i.e. " reads all the rules before it runs anything")?