diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-20 17:15:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-20 17:15:53 -0500 |
commit | 810a4855513b9cb1a191301eb5e4e28b276cc318 (patch) | |
tree | ba9d7020e321c0736f04eb1c064e0561655004ac /Makefile | |
parent | 6f8c9d2130893eda35ad9105e6e2a08db7f0da13 (diff) | |
parent | bd1ee804af8bdf2fd5131234330615f8aecbd9ed (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-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -124,7 +124,7 @@ $(if $(KBUILD_OUTPUT),, \ | |||
124 | PHONY += $(MAKECMDGOALS) sub-make | 124 | PHONY += $(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 | ||
129 | sub-make: FORCE | 129 | sub-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) | |||
1027 | clean: rm-files := $(CLEAN_FILES) | 1027 | clean: rm-files := $(CLEAN_FILES) |
1028 | clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) | 1028 | clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) |
1029 | 1029 | ||
1030 | PHONY += $(clean-dirs) clean archclean | 1030 | PHONY += $(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 | ||
1034 | clean: archclean | 1034 | vmlinuxclean: |
1035 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean | ||
1036 | |||
1037 | clean: 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: ; | |||
1258 | endif # KBUILD_EXTMOD | 1261 | endif # KBUILD_EXTMOD |
1259 | 1262 | ||
1260 | clean: $(clean-dirs) | 1263 | clean: $(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) \ |