Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.5-rc3 /Makefile

Filename:/Makefile
Lines Added:50
Lines Deleted:48
Also changed in: (Previous) 2.6.5-rc2-bk9  2.6.5-rc2-bk8  2.6.5-rc2-bk7  2.6.5-rc2-bk6  2.6.5-rc2-bk5  2.6.5-rc2-bk4 
(Following) 2.6.5-rc3-bk1  2.6.5-rc3-bk2  2.6.5-rc3-bk3  2.6.5-rc3-bk4  2.6.5  2.6.5-bk1 

Location
[  2.6.5-rc3
   o  Makefile

Patch

diff -Nru a/Makefile b/Makefile
--- a/Makefile   Mon Mar 29 19:27:54 2004
+++ b/Makefile   Mon Mar 29 19:27:54 2004
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
-SUBLEVEL = 4
-EXTRAVERSION =
+SUBLEVEL = 5
+EXTRAVERSION =-rc3
 NAME=Feisty Dunnart
 
 # *DOCUMENTATION*
@@ -304,17 +304,10 @@
 # ===========================================================================
 # Rules shared between *config targets and build targets
 
-# Helpers built in scripts/
-
-scripts/docproc scripts/split-include : scripts ;
-
-.PHONY: scripts scripts/fixdep
-scripts:
-   $(Q)$(MAKE) $(build)=scripts
-
-scripts/fixdep:
-   $(Q)$(MAKE) $(build)=scripts $@
-
+# Basic helpers built in scripts/
+.PHONY: scripts_basic
+scripts_basic:
+   $(Q)$(MAKE) $(build)=scripts/basic
 
 # To make sure we do not include .config for any of the *config targets
 # catch them early, and hand them over to scripts/kconfig/Makefile
@@ -358,9 +351,9 @@
 # *config targets only - make sure prerequisites are updated, and descend
 # in scripts/kconfig to make the *config target
 
-%config: scripts/fixdep FORCE
+config: scripts_basic FORCE
    $(Q)$(MAKE) $(build)=scripts/kconfig $@
-config : scripts/fixdep FORCE
+%config: scripts_basic FORCE
    $(Q)$(MAKE) $(build)=scripts/kconfig $@
 
 else
@@ -368,6 +361,16 @@
 # Build targets only - this includes vmlinux, arch specific targets, clean
 # targets and others. In general all targets except *config targets.
 
+# Additional helpers built in scripts/
+# Carefully list dependencies so we do not try to build scripts twice
+# in parrallel
+.PHONY: scripts
+scripts: scripts_basic include/config/MARKER
+   $(Q)$(MAKE) $(build)=$(@)
+
+scripts_basic: include/linux/autoconf.h
+
+
 # That's our default target when none is given on the command line
 # Note that 'modules' will be added as a prerequisite as well, 
 # in the CONFIG_MODULES part below
@@ -400,7 +403,9 @@
 # with it and forgot to run make oldconfig
 include/linux/autoconf.h: .config
    $(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig
-
+else
+# Dummy target needed, because used as prerequisite
+include/linux/autoconf.h: ;
 endif
 
 include $(srctree)/arch/$(ARCH)/Makefile
@@ -558,7 +563,7 @@
 #    Handle descending into subdirectories listed in $(SUBDIRS)
 
 .PHONY: $(SUBDIRS)
-$(SUBDIRS): prepare-all
+$(SUBDIRS): prepare-all scripts
    $(Q)$(MAKE) $(build)=$@
 
 # Things we need to do before we recursively start building the kernel
@@ -633,9 +638,9 @@
 
 #    Split autoconf.h into include/linux/config/*
 
-include/config/MARKER: scripts/split-include include/linux/autoconf.h
+include/config/MARKER: include/linux/autoconf.h
    @echo '  SPLIT   include/linux/autoconf.h -> include/config/*'
-   @scripts/split-include include/linux/autoconf.h include/config
+   @scripts/basic/split-include include/linux/autoconf.h include/config
    @touch $@
 
 # Generate some files
@@ -757,26 +762,15 @@
 #                Any core files spread around are deleted as well
 # make distclean Remove editor backup files, patch leftover files and the like
 
-# Files removed with 'make clean'
-CLEAN_FILES += vmlinux System.map MC*
+# Directories & files removed with 'make clean'
+CLEAN_DIRS  += $(MODVERDIR) include/config include2
+CLEAN_FILES +=   vmlinux System.map \
+      include/linux/autoconf.h include/linux/version.h \
+      include/asm include/linux/modversions.h \
+      kernel.spec .tmp*
 
 # Files removed with 'make mrproper'
-MRPROPER_FILES += \
-   include/linux/autoconf.h include/linux/version.h \
-   .version .config .config.old config.in config.old \
-   .menuconfig.log \
-   include/asm \
-   .hdepend include/linux/modversions.h \
-   tags TAGS cscope* kernel.spec \
-   .tmp*
-
-# Directories removed with 'make mrproper'
-MRPROPER_DIRS += \
-   $(MODVERDIR) \
-   .tmp_export-objs \
-   include/config \
-   include/linux/modules \
-   include2
+MRPROPER_FILES += .version .config .config.old tags TAGS cscope*
 
 # clean - Delete all intermediate files
 #
@@ -785,28 +779,36 @@
 $(clean-dirs):
    $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
 
-quiet_cmd_rmclean = RM  $$(CLEAN_FILES)
-cmd_rmclean     = rm -f $(CLEAN_FILES)
+clean:      rm-dirs  := $(wildcard $(CLEAN_DIRS))
+mrproper:   rm-dirs  := $(wildcard $(MRPROPER_DIRS))
+quiet_cmd_rmdirs = $(if $(rm-dirs),CLEAN   $(rm-dirs))
+      cmd_rmdirs = rm -rf $(rm-dirs)
+
+clean:      rm-files := $(wildcard $(CLEAN_FILES))
+mrproper:   rm-files := $(wildcard $(MRPROPER_FILES))
+quiet_cmd_rmfiles = $(if $(rm-files),CLEAN   $(rm-files))
+      cmd_rmfiles = rm -rf $(rm-files)
+
 clean: archclean $(clean-dirs)
-   $(call cmd,rmclean)
+   $(call cmd,rmdirs)
+   $(call cmd,rmfiles)
    @find . $(RCS_FIND_IGNORE) \
        \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
       -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \
       -type f -print | xargs rm -f
 
-# mrproper - delete configuration + modules + core files
+# mrproper
 #
-quiet_cmd_mrproper = RM  $$(MRPROPER_DIRS) + $$(MRPROPER_FILES)
-cmd_mrproper = rm -rf $(MRPROPER_DIRS) && rm -f $(MRPROPER_FILES)
-mrproper distclean: clean archmrproper
-   @echo '  Making $@ in the srctree'
+distclean: mrproper
+mrproper: clean archmrproper
+   $(call cmd,rmdirs)
+   $(call cmd,rmfiles)
    @find . $(RCS_FIND_IGNORE) \
        \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
       -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
        -o -name '.*.rej' -o -size 0 \
       -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \
       -type f -print | xargs rm -f
-   $(call cmd,mrproper)
 
 # Generate tags for editors
 # ---------------------------------------------------------------------------
@@ -932,7 +934,7 @@
 
 # Documentation targets
 # ---------------------------------------------------------------------------
-%docs: scripts/docproc FORCE
+%docs: scripts FORCE
    $(Q)$(MAKE) $(build)=Documentation/DocBook $@
 
 # Scripts to check various things for consistency
@@ -985,7 +987,7 @@
    @set -e; \
    $(if $($(quiet)cmd_$(1)),echo '  $(subst ','\'',$($(quiet)cmd_$(1)))';) \
    $(cmd_$(1)); \
-   scripts/fixdep $(depfile) $@ '$(subst $$,$$$$,$(subst ','\'',$(cmd_$(1))))' > $(@D)/.$(@F).tmp; \
+   scripts/basic/fixdep $(depfile) $@ '$(subst $$,$$$$,$(subst ','\'',$(cmd_$(1))))' > $(@D)/.$(@F).tmp; \
    rm -f $(depfile); \
    mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd)
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.