aboutsummaryrefslogtreecommitdiff
path: root/scripts/mkmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mkmakefile')
-rw-r--r--scripts/mkmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile
index 9ad1bd79325..e0f54b9d8fe 100644
--- a/scripts/mkmakefile
+++ b/scripts/mkmakefile
@@ -13,7 +13,7 @@
test ! -r $2/Makefile -o -O $2/Makefile || exit 0
# Only overwrite automatically generated Makefiles
# (so we do not overwrite kernel Makefile)
-if ! grep -q Automatically $2/Makefile
+if test -e $2/Makefile && ! grep -q Automatically $2/Makefile
then
exit 0
fi