X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2FKbuild.include;h=ac5f275b0283f1f9807fcc281c3a443e30955eda;hb=5d22a312b7afddaed3cbb2fffb3cceb0c22a6cf5;hp=b0d067be739056089fbb09a357bbacc5c0daf6b4;hpb=61fb46c5b3578fda7cc780e8bc53b3e8f8c1a143;p=linux-2.6 diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index b0d067be73..ac5f275b02 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -12,6 +12,11 @@ space := $(empty) $(empty) # contain a comma depfile = $(subst $(comma),_,$(@D)/.$(@F).d) +### +# basetarget equals the filename of the target with no extension. +# So 'foo/bar.o' becomes 'bar' +basetarget = $(basename $(notdir $@)) + ### # Escape single quote for use in echo statements escsq = $(subst $(squote),'\$(squote)',$1)