diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 20:52:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 20:52:31 -0400 |
commit | b003d7706abc5d75cb58de0c9de8f1fc77e57008 (patch) | |
tree | 2cb773a113d2300a1f5a8b706ecc890ffe8a7338 /Makefile | |
parent | 3573d3869de475cca9f2d4998fc3c2871a4cc2db (diff) | |
parent | b12f73740b8764952a112a677991300545e98c06 (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild changes from Michal Marek:
- cleanups in the main Makefiles and Documentation/DocBook/Makefile
- make O=... directory is automatically created if needed
- mrproper/distclean removes the old include/linux/version.h to make
life easier when bisecting across the commit that moved the version.h
file
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
kbuild: docbook: fix the include error when executing "make help"
kbuild: create a build directory automatically for out-of-tree build
kbuild: remove redundant '.*.cmd' pattern from make distclean
kbuild: move "quote" to Kbuild.include to be consistent
kbuild: docbook: use $(obj) and $(src) rather than specific path
kbuild: unconditionally clobber include/linux/version.h on distclean
kbuild: docbook: specify KERNELDOC dependency correctly
kbuild: docbook: include cmd files more simply
kbuild: specify build_docproc as a phony target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -120,9 +120,10 @@ ifneq ($(KBUILD_OUTPUT),) | |||
120 | # Invoke a second make in the output directory, passing relevant variables | 120 | # Invoke a second make in the output directory, passing relevant variables |
121 | # check that the output directory actually exists | 121 | # check that the output directory actually exists |
122 | saved-output := $(KBUILD_OUTPUT) | 122 | saved-output := $(KBUILD_OUTPUT) |
123 | KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd) | 123 | KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \ |
124 | && /bin/pwd) | ||
124 | $(if $(KBUILD_OUTPUT),, \ | 125 | $(if $(KBUILD_OUTPUT),, \ |
125 | $(error output directory "$(saved-output)" does not exist)) | 126 | $(error failed to create output directory "$(saved-output)")) |
126 | 127 | ||
127 | PHONY += $(MAKECMDGOALS) sub-make | 128 | PHONY += $(MAKECMDGOALS) sub-make |
128 | 129 | ||
@@ -1079,7 +1080,7 @@ MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \ | |||
1079 | Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \ | 1080 | Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \ |
1080 | signing_key.priv signing_key.x509 x509.genkey \ | 1081 | signing_key.priv signing_key.x509 x509.genkey \ |
1081 | extra_certificates signing_key.x509.keyid \ | 1082 | extra_certificates signing_key.x509.keyid \ |
1082 | signing_key.x509.signer | 1083 | signing_key.x509.signer include/linux/version.h |
1083 | 1084 | ||
1084 | # clean - Delete most, but leave enough to build external modules | 1085 | # clean - Delete most, but leave enough to build external modules |
1085 | # | 1086 | # |
@@ -1118,8 +1119,7 @@ distclean: mrproper | |||
1118 | @find $(srctree) $(RCS_FIND_IGNORE) \ | 1119 | @find $(srctree) $(RCS_FIND_IGNORE) \ |
1119 | \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ | 1120 | \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ |
1120 | -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ | 1121 | -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ |
1121 | -o -name '.*.rej' \ | 1122 | -o -name '.*.rej' -o -name '*%' -o -name 'core' \) \ |
1122 | -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \ | ||
1123 | -type f -print | xargs rm -f | 1123 | -type f -print | xargs rm -f |
1124 | 1124 | ||
1125 | 1125 | ||