aboutsummaryrefslogtreecommitdiff
path: root/scripts/mkmakefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-05-08 09:10:44 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-05-08 09:10:44 -0700
commitbed7a560333d40269a886c4421d4c8f964a32177 (patch)
tree2350415cae5724d07862a84140d94522fca3f6ab /scripts/mkmakefile
parent75dff55af9a989293e9f9bacf049858f4262bc08 (diff)
parentfd5f0cd6b0cef59ba18e5ac13be5b2775fa6ec28 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: kbuild: Do not overwrite makefile as anohter user kbuild: drivers/video/logo/ - fix ident glitch kbuild: fix gen_initramfs_list.sh kbuild modpost - relax driver data name kbuild: removing .tmp_versions considered harmful kbuild: fix modpost segfault for 64bit mipsel kernel
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 a22cbedd3b3..7f9d544f9b6 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