Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/installboot replace machines.c rebuild with "regenm...



details:   https://anonhg.NetBSD.org/src/rev/8b0a2e72e7e6
branches:  trunk
changeset: 524984:8b0a2e72e7e6
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Apr 03 05:58:44 2002 +0000

description:
replace machines.c rebuild with "regenmachines", which needs to be run
manually

diffstat:

 usr.sbin/installboot/Makefile   |  11 ++++-------
 usr.sbin/installboot/machines.c |  15 +++++++++++++++
 2 files changed, 19 insertions(+), 7 deletions(-)

diffs (45 lines):

diff -r 896af0c87e55 -r 8b0a2e72e7e6 usr.sbin/installboot/Makefile
--- a/usr.sbin/installboot/Makefile     Wed Apr 03 05:37:33 2002 +0000
+++ b/usr.sbin/installboot/Makefile     Wed Apr 03 05:58:44 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2002/04/03 05:21:16 lukem Exp $
+#      $NetBSD: Makefile,v 1.2 2002/04/03 05:58:44 lukem Exp $
 #
 
 PROG=  installboot
@@ -14,13 +14,10 @@
 SRCS+=         ${IB_MACHINES:S/$/.c/}
 
 
-# XXX: maybe build as necessary and commit, rather than build each time?
-#
-CPPFLAGS+=     -I${.CURDIR}
-CLEANFILES+=   machines.c
-
-machines.c: mkmachines.awk Makefile
+regenmachines: mkmachines.awk Makefile
+       -mv -f ${.CURDIR}/machines.c ${.CURDIR}/machines.c.bak
        awk -f ${.CURDIR}/mkmachines.awk ${IB_MACHINES} > ${.TARGET}
+       mv ${.TARGET} ${.CURDIR}/machines.c
 
 
 .ifndef HOSTPROG
diff -r 896af0c87e55 -r 8b0a2e72e7e6 usr.sbin/installboot/machines.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.sbin/installboot/machines.c   Wed Apr 03 05:58:44 2002 +0000
@@ -0,0 +1,15 @@
+/* $NetBSD: machines.c,v 1.1 2002/04/03 05:58:45 lukem Exp $ */
+
+/* DO NOT EDIT-- this file is automatically generated. */
+
+#include <sys/types.h>
+#include "installboot.h"
+
+int vax_parseopt(ib_params *, const char *);
+int vax_setboot(ib_params *);
+int vax_clearboot(ib_params *);
+
+struct ib_mach machines[] = {
+       { "vax",        vax_parseopt,   vax_setboot,    vax_clearboot },
+       { 0, 0, 0, 0 },
+};



Home | Main Index | Thread Index | Old Index