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 Don't try to use /tmp/Makefile...



details:   https://anonhg.NetBSD.org/src/rev/5a466536fd50
branches:  trunk
changeset: 481200:5a466536fd50
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Mon Jan 24 18:07:54 2000 +0000

description:
Don't try to use /tmp/Makefile...

diffstat:

 usr.bin/crunch/crunchgen/crunchgen.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 8d6b888ba892 -r 5a466536fd50 usr.bin/crunch/crunchgen/crunchgen.c
--- a/usr.bin/crunch/crunchgen/crunchgen.c      Mon Jan 24 18:03:19 2000 +0000
+++ b/usr.bin/crunch/crunchgen/crunchgen.c      Mon Jan 24 18:07:54 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crunchgen.c,v 1.13 2000/01/09 16:37:28 sommerfeld Exp $        */
+/*     $NetBSD: crunchgen.c,v 1.14 2000/01/24 18:07:54 mycroft Exp $   */
 /*
  * Copyright (c) 1994 University of Maryland
  * All Rights Reserved.
@@ -33,7 +33,7 @@
  */
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: crunchgen.c,v 1.13 2000/01/09 16:37:28 sommerfeld Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.14 2000/01/24 18:07:54 mycroft Exp $");
 #endif
 
 #include <stdlib.h>
@@ -574,9 +574,9 @@
        return;
     }
        
-    fprintf(f, ".include \"Makefile\"\n");
-    fprintf(f, ".if defined(PROG) && !defined(OBJS)\n");
-    fprintf(f, "OBJS=${PROG}.o\n");
+    fprintf(f, ".include \"${.CURDIR}/Makefile\"\n");
+    fprintf(f, ".if defined(PROG)\n");
+    fprintf(f, "OBJS?= ${PROG}.o\n");
     fprintf(f, ".endif\n");
     fprintf(f, "crunchgen_objs:\n\t@echo 'OBJS= '${OBJS}\n");
     fclose(f);



Home | Main Index | Thread Index | Old Index