Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0318d85 authored by Arnaud Lacombe's avatar Arnaud Lacombe
Browse files

kbuild: add `baseprereq'



On the same model as `basetarget', it represents the filename of first
prerequisite with directory and extension stripped.

Signed-off-by: default avatarArnaud Lacombe <lacombar@gmail.com>
parent 55922c9d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -20,6 +20,10 @@ depfile = $(subst $(comma),_,$(dot-target).d)
# filename of target with directory and extension stripped
basetarget = $(basename $(notdir $@))

###
# filename of first prerequisite with directory and extension stripped
baseprereq = $(basename $(notdir $<))

###
# Escape single quote for use in echo statements
escsq = $(subst $(squote),'\$(squote)',$1)