Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/crunch/crunchgen Fix a bug.
details: https://anonhg.NetBSD.org/src/rev/b1d7fa65cba9
branches: trunk
changeset: 750638:b1d7fa65cba9
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sat Jan 09 06:37:57 2010 +0000
description:
Fix a bug.
always mkdir for 'objs' and 'objdir' when NEW_TOOLCHAIN.
diffstat:
usr.bin/crunch/crunchgen/crunchgen.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 1893ac1b1154 -r b1d7fa65cba9 usr.bin/crunch/crunchgen/crunchgen.c
--- a/usr.bin/crunch/crunchgen/crunchgen.c Sat Jan 09 01:25:09 2010 +0000
+++ b/usr.bin/crunch/crunchgen/crunchgen.c Sat Jan 09 06:37:57 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crunchgen.c,v 1.75 2009/04/14 22:03:07 lukem Exp $ */
+/* $NetBSD: crunchgen.c,v 1.76 2010/01/09 06:37:57 kiyohara Exp $ */
/*
* Copyright (c) 1994 University of Maryland
* All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: crunchgen.c,v 1.75 2009/04/14 22:03:07 lukem Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.76 2010/01/09 06:37:57 kiyohara Exp $");
#endif
#include <stdlib.h>
@@ -993,7 +993,6 @@
fprintf(outmk, "%s_OBJS=", p->ident);
output_strlst(outmk, p->objs);
}
- fprintf(outmk, "%s:\n\t mkdir %s\n", p->ident, p->ident);
fprintf(outmk, "%s_make: %s .PHONY\n", p->ident, p->ident);
fprintf(outmk, "\t( cd %s; printf '.PATH: ${%s_SRCDIR}\\n"
".CURDIR:= ${%s_SRCDIR}\\n"
@@ -1020,6 +1019,9 @@
fprintf(outmk, "%s_make:\n\t@echo \"** Using existing objs for %s\"\n\n",
p->ident, p->name);
+#ifdef NEW_TOOLCHAIN
+ fprintf(outmk, "%s:\n\t mkdir %s\n", p->ident, p->ident);
+#endif
fprintf(outmk, "%s.cro: %s .WAIT ${%s_OBJPATHS}\n",
p->name, p->ident, p->ident);
Home |
Main Index |
Thread Index |
Old Index