summaryrefslogtreecommitdiffstats
path: root/scripts/mkmakefile
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-05-20 06:03:38 +0200
committerJeff Garzik <jeff@garzik.org>2006-05-20 06:03:38 +0200
commitbadc48e6605ddeeb2484afae5993c859494decaa (patch)
tree7da638f9bb53b1812b71e40ad6deca91d59ad301 /scripts/mkmakefile
parentMerge branch 'upstream-fixes' into upstream (diff)
parentMerge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/rolan... (diff)
downloadlinux-badc48e6605ddeeb2484afae5993c859494decaa.tar.xz
linux-badc48e6605ddeeb2484afae5993c859494decaa.zip
Merge branch 'master' into upstream
Diffstat (limited to 'scripts/mkmakefile')
-rw-r--r--scripts/mkmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile
index a22cbedd3b3e..7f9d544f9b6c 100644
--- a/scripts/mkmakefile
+++ b/scripts/mkmakefile
@@ -10,7 +10,10 @@
# $4 - patchlevel
-cat << EOF
+test ! -r $2/Makefile -o -O $2/Makefile || exit 0
+echo " GEN $2/Makefile"
+
+cat << EOF > $2/Makefile
# Automatically generated by $0: don't edit
VERSION = $3