diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-06-24 16:50:18 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-06-24 17:13:59 -0400 |
commit | e5c44fd88c146755da6941d047de4d97651404a9 (patch) | |
tree | e97c72787b08f9576eb14242483b09ce8850934e /scripts/Kbuild.include | |
parent | 216b2f1f718d653795024a085636d063693dd9a9 (diff) |
kbuild: fix make -rR breakage
make failed to supply the filename when using make -rR and using $(*F)
to get target filename without extension.
This bug was not reproduceable in small scale but using:
$(basename $(notdir $@)) fixes it with same functionality.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r-- | scripts/Kbuild.include | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index b0d067be7390..ac5f275b0283 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -13,6 +13,11 @@ space := $(empty) $(empty) | |||
13 | depfile = $(subst $(comma),_,$(@D)/.$(@F).d) | 13 | depfile = $(subst $(comma),_,$(@D)/.$(@F).d) |
14 | 14 | ||
15 | ### | 15 | ### |
16 | # basetarget equals the filename of the target with no extension. | ||
17 | # So 'foo/bar.o' becomes 'bar' | ||
18 | basetarget = $(basename $(notdir $@)) | ||
19 | |||
20 | ### | ||
16 | # Escape single quote for use in echo statements | 21 | # Escape single quote for use in echo statements |
17 | escsq = $(subst $(squote),'\$(squote)',$1) | 22 | escsq = $(subst $(squote),'\$(squote)',$1) |
18 | 23 | ||