lkml.org 
[lkml]   [1998]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectBeating a dead horse (Makefile nit's and fixes)
If y'all will remember, I had tried to make modications to the main
Makefile that allowed a single "make" command to flow through "make
dep;make config;make" in one command.

The problem that was pointed out to me was that the newly generated
.config or .depend's were not "include"'d into the Makefile because of the
presense of

ifeq (.depend,$(wildcard .depend))
include .depend
endif

which would not be reevaluated once the missing files were created.

I had hoped that something like:

foobar: this and that
include .depend

would work (knowing little about Makefile's also) which of course it
didn't.

So, try to not let myself give up, I've come up with THIS :)

[ snippet ]
ifeq (.config,$(wildcard .config))
include .config
endif
ifeq (.depend,$(wildcard .depend))
include .depend
endif


all: .config .depend do-it-all

.depend:
$(MAKE) depend

.config:
$(MAKE) oldconfig

do-it-all:
$(MAKE) vmlinux
[ end-snippet ]

Now then, can anyone see something amiss with this approach (and I'm not
refering to official kernel distribution, but just in the general) ? It
seems that by executing the appropriate makes in subshells, the newly
generated information is then included (when make config finishes, make
depend is run in a new make process which includes .config, when depend
finishes, it launches do-it-all seperately which then includes .config and
.depend).

It seems OK to me... comments?

Trying to learn,
N!

.............................................................................
..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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.089 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site