fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / scripts / kconfig / util.c
index 1fa4c0b..e3f28b9 100644 (file)
@@ -33,7 +33,7 @@ int file_write_dep(const char *name)
        FILE *out;
 
        if (!name)
-               name = ".config.cmd";
+               name = ".kconfig.d";
        out = fopen("..config.tmp", "w");
        if (!out)
                return 1;
@@ -44,7 +44,9 @@ int file_write_dep(const char *name)
                else
                        fprintf(out, "\t%s\n", file->name);
        }
-       fprintf(out, "\n.config include/linux/autoconf.h: $(deps_config)\n\n$(deps_config):\n");
+       fprintf(out, "\ninclude/config/auto.conf: \\\n"
+                    "\t$(deps_config)\n\n"
+                    "$(deps_config): ;\n");
        fclose(out);
        rename("..config.tmp", name);
        return 0;
@@ -101,7 +103,7 @@ void str_printf(struct gstr *gs, const char *fmt, ...)
        va_end(ap);
 }
 
-/* Retreive value of growable string */
+/* Retrieve value of growable string */
 const char *str_get(struct gstr *gs)
 {
        return gs->s;