linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuild: remove trailing slash from devicetree/binding/ for descending
@ 2020-02-26 17:53 Masahiro Yamada
  2020-03-03 13:47 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2020-02-26 17:53 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Rob Herring, devicetree, linux-kernel, Masahiro Yamada,
	Jonathan Corbet, linux-doc

obj-* needs a trailing slash for a directory, but subdir-* does not
because it already implies a directory.

Also, change subdir-y to subdir- to ensure this is effective only
for cleaning targets.

This makes the cleaning log consistent. (no trailing slash)

Before:

  $ make clean
  CLEAN   Documentation/devicetree/bindings/

After:

  $ make clean
  CLEAN   Documentation/devicetree/bindings

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 Documentation/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/Makefile b/Documentation/Makefile
index d77bb607aea4..39569a2e1953 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -2,7 +2,8 @@
 # Makefile for Sphinx documentation
 #
 
-subdir-y := devicetree/bindings/
+# for cleaning
+subdir- := devicetree/bindings
 
 # Check for broken documentation file references
 ifeq ($(CONFIG_WARN_MISSING_DOCUMENTS),y)
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: remove trailing slash from devicetree/binding/ for descending
  2020-02-26 17:53 [PATCH] kbuild: remove trailing slash from devicetree/binding/ for descending Masahiro Yamada
@ 2020-03-03 13:47 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2020-03-03 13:47 UTC (permalink / raw)
  To: Linux Kbuild mailing list
  Cc: Rob Herring, DTML, Linux Kernel Mailing List, Jonathan Corbet,
	open list:DOCUMENTATION

On Thu, Feb 27, 2020 at 2:53 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> obj-* needs a trailing slash for a directory, but subdir-* does not
> because it already implies a directory.
>
> Also, change subdir-y to subdir- to ensure this is effective only
> for cleaning targets.
>
> This makes the cleaning log consistent. (no trailing slash)
>
> Before:
>
>   $ make clean
>   CLEAN   Documentation/devicetree/bindings/
>
> After:
>
>   $ make clean
>   CLEAN   Documentation/devicetree/bindings
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---


Applied to linux-kbuild.



>
>  Documentation/Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/Makefile b/Documentation/Makefile
> index d77bb607aea4..39569a2e1953 100644
> --- a/Documentation/Makefile
> +++ b/Documentation/Makefile
> @@ -2,7 +2,8 @@
>  # Makefile for Sphinx documentation
>  #
>
> -subdir-y := devicetree/bindings/
> +# for cleaning
> +subdir- := devicetree/bindings
>
>  # Check for broken documentation file references
>  ifeq ($(CONFIG_WARN_MISSING_DOCUMENTS),y)
> --
> 2.17.1
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-03 13:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26 17:53 [PATCH] kbuild: remove trailing slash from devicetree/binding/ for descending Masahiro Yamada
2020-03-03 13:47 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).