diff --git a/toolchain/Makefile b/toolchain/Makefile
index e8ee24ff7ae1d62015687cab7969b86f44d65d84..3e1b3b4a2dae32f9796d1dd796dde5195ab881c8 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -6,7 +6,6 @@
 #
 # Main makefile for the toolchain
 #
-file:=${lastword ${MAKEFILE_LIST}}
 curdir:=toolchain
 
 # subdirectories to descend into
diff --git a/tools/Makefile b/tools/Makefile
index 2c093c0aaca67b578a21f01bc72f1038af192150..2b0143e6b3473a95298087d1b2c8c4981349c40b 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -6,8 +6,6 @@
 #
 # Main makefile for the host tools
 #
-
-file:=${lastword ${MAKEFILE_LIST}}
 curdir:=tools
 
 # subdirectories to descend into