lkml.org 
[lkml]   [1998]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Beating a dead horse (Makefile nit's and fixes)
From
Date
"Nicholas J. Leon" <nicholas@binary9.net> writes:

> 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

I wouldn't rely on left-to-right order, especially since some people
like to run "make -j". I haven't tested this, but something like

all: .depend
$(MAKE) $(MFLAGS) vmlinux

.depend: .config
$(MAKE) $(MFLAGS) depend

.config:
$(MAKE) $(MFLAGS) oldconfig

should be more reliable. BTW, why don't the kernel Makefiles invoke
$(MAKE) with $(MFLAGS)?

-
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.088 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site