aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-20 17:15:53 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-20 17:15:53 -0500
commit810a4855513b9cb1a191301eb5e4e28b276cc318 (patch)
treeba9d7020e321c0736f04eb1c064e0561655004ac /Makefile
parent6f8c9d2130893eda35ad9105e6e2a08db7f0da13 (diff)
parentbd1ee804af8bdf2fd5131234330615f8aecbd9ed (diff)
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild changes from Michal Marek: "The kbuild changes are minimal this time: - scripts/pnmlogo fix for some newer format - minor top-level Makefile cleanup - fix for a v3.5 regression with make clean M=<directory>" * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: kbuild: Do not remove vmlinux when cleaning external module scripts/pnmtologo: fix for plain PBM kbuild: Remove reference to uninitialised variable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6f07f4a28b47..4fe05595b2da 100644
--- a/Makefile
+++ b/Makefile
@@ -124,7 +124,7 @@ $(if $(KBUILD_OUTPUT),, \
124PHONY += $(MAKECMDGOALS) sub-make 124PHONY += $(MAKECMDGOALS) sub-make
125 125
126$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make 126$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
127 $(Q)@: 127 @:
128 128
129sub-make: FORCE 129sub-make: FORCE
130 $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ 130 $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \
@@ -1027,11 +1027,14 @@ clean: rm-dirs := $(CLEAN_DIRS)
1027clean: rm-files := $(CLEAN_FILES) 1027clean: rm-files := $(CLEAN_FILES)
1028clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) 1028clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples)
1029 1029
1030PHONY += $(clean-dirs) clean archclean 1030PHONY += $(clean-dirs) clean archclean vmlinuxclean
1031$(clean-dirs): 1031$(clean-dirs):
1032 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) 1032 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1033 1033
1034clean: archclean 1034vmlinuxclean:
1035 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean
1036
1037clean: archclean vmlinuxclean
1035 1038
1036# mrproper - Delete all generated files, including .config 1039# mrproper - Delete all generated files, including .config
1037# 1040#
@@ -1258,7 +1261,6 @@ scripts: ;
1258endif # KBUILD_EXTMOD 1261endif # KBUILD_EXTMOD
1259 1262
1260clean: $(clean-dirs) 1263clean: $(clean-dirs)
1261 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean
1262 $(call cmd,rmdirs) 1264 $(call cmd,rmdirs)
1263 $(call cmd,rmfiles) 1265 $(call cmd,rmfiles)
1264 @find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \ 1266 @find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \