Re: [TINY PATCH 2.1.x] Minor nit and fix for main Makefile

Nicholas J. Leon (nicholas@binary9.net)
Sat, 30 May 1998 18:09:26 -0400 (EDT)


On 30 May 1998, Aaron M. Ucko wrote:

# > But it still works. Is there something magical about .depend files?
#
# No, but the worst that can happen if they're missing is that make
# fails to update an object file when one of the headers on which it
# depends changes; the assumption is that if they're missing you either
# have a clean source tree or don't care about correct dependency
# information. Failing to read .config, on the other hand, has far more
# serious consequences, since you'll end up with a (useless) kernel
# built as if you answered "no" to everything.

That makes sense. Now, a related Makefile question: in various parts we
have something similiar to:

ifdef ....
include .config
endif

Is it possible to put that include statement into a dependancy section?
For example, could we do something like:

config:
$(MAKE) config
include .config

? I know that the above doesn't work, as it tries to execute "include
.config" as a shell command. Is there anyway to make it behave like I want
it to? :)

# > Content-Type: TEXT/PLAIN; charset=US-ASCII; name=Makefile
# > Content-Transfer-Encoding: BASE64

Is this from me?!?! Egads!

.............................................................................
..nicholas j. leon..........mrnick.binary9.net.........nicholas@binary9.net..

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu