mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
kbuild: add `baseprereq'
On the same model as `basetarget', it represents the filename of first prerequisite with directory and extension stripped. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
This commit is contained in:
parent
55922c9d1b
commit
e0318d85be
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ depfile = $(subst $(comma),_,$(dot-target).d)
|
||||||
# filename of target with directory and extension stripped
|
# filename of target with directory and extension stripped
|
||||||
basetarget = $(basename $(notdir $@))
|
basetarget = $(basename $(notdir $@))
|
||||||
|
|
||||||
|
###
|
||||||
|
# filename of first prerequisite with directory and extension stripped
|
||||||
|
baseprereq = $(basename $(notdir $<))
|
||||||
|
|
||||||
###
|
###
|
||||||
# Escape single quote for use in echo statements
|
# Escape single quote for use in echo statements
|
||||||
escsq = $(subst $(squote),'\$(squote)',$1)
|
escsq = $(subst $(squote),'\$(squote)',$1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue