diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-02-13 22:05:17 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-02-19 19:42:47 -0500 |
commit | 6d3c94e4a6523d1c3b59c23fb607d18bf08ea4fc (patch) | |
tree | 44365b05808ed47a663952295d0de120cbcef4d8 /Makefile | |
parent | 648ad9b19f43b7bc2c1a47ddd487c69364987ec9 (diff) |
kbuild: turn '/' into an alias of './'
Commit 06300b21f4c7 ("kbuild: support building individual files for
external modules") introduced the '/' target. It works only for
external modules to build all .o files, but skip the modpost stage.
However, 'make /' looks a bit weird to me. 'make ./' is more sensible
if you want to build all objects under the current directory, and it
works as expected.
Let's change '/' into a phony target that is an alias of './', but
I may feel like deprecating it in the future.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1715,8 +1715,9 @@ endif | |||
1715 | $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) | 1715 | $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) |
1716 | 1716 | ||
1717 | # Modules | 1717 | # Modules |
1718 | /: prepare FORCE | 1718 | PHONY += / |
1719 | $(Q)$(MAKE) KBUILD_MODULES=1 $(build)=$(build-dir) | 1719 | /: ./ |
1720 | |||
1720 | # Make sure the latest headers are built for Documentation | 1721 | # Make sure the latest headers are built for Documentation |
1721 | Documentation/ samples/: headers_install | 1722 | Documentation/ samples/: headers_install |
1722 | %/: prepare FORCE | 1723 | %/: prepare FORCE |