linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / scripts / mkmakefile
index 7f9d544..c4d621b 100644 (file)
 # $4 - patchlevel
 
 
-test ! -r $2/Makefile -o -O $2/Makefile || exit 0
-echo "  GEN     $2/Makefile"
-
-cat << EOF > $2/Makefile
+cat << EOF
 # Automatically generated by $0: don't edit
 
 VERSION = $3
@@ -24,13 +21,11 @@ KERNELOUTPUT := $2
 
 MAKEFLAGS += --no-print-directory
 
-.PHONY: all \$(MAKECMDGOALS)
-
 all:
        \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT)
 
-Makefile:;
-
-\$(filter-out all Makefile,\$(MAKECMDGOALS)) %/:
+%::
        \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@
+
 EOF
+