Skip to contentSkip to conversation

kbuild: remove trailing slash from devicetree/binding/ for descending

PATCH In review Masahiro Yamada 1 participant 2 messages Feb 26, 2020 – Mar 3, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: remove trailing slash from devicetree/binding/ for descending

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

---

 Documentation/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/Makefile +2 -1
index d77bb607aea4..39569a2e1953 100644
@@ -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)
Signature · 1 line
2.17.1
#1 lore raw
Quoted 14 lines · Masahiro Yamada

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/
Quoted 7 lines

After:

  $ make clean
  CLEAN   Documentation/devicetree/bindings

---

Applied to linux-kbuild.

Quoted 21 lines
 Documentation/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/Makefile +2 -2
index d77bb607aea4..39569a2e1953 100644
@@ -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

Signature · 2 lines
Best Regards
Masahiro Yamada