]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - scripts/Kbuild.include
ARM: OMAP: Multiplexing for 24xx GPMC wait pin monitoring
[linux-2.6-omap-h63xx.git] / scripts / Kbuild.include
index b0d067be739056089fbb09a357bbacc5c0daf6b4..ac5f275b0283f1f9807fcc281c3a443e30955eda 100644 (file)
@@ -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)