Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/sparc64/stand/bootblk Approved by thorpej:



details:   https://anonhg.NetBSD.org/src/rev/7f0c742d2582
branches:  netbsd-1-5
changeset: 488759:7f0c742d2582
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Thu Jul 27 00:06:58 2000 +0000

description:
Approved by thorpej:
Make this work with obj dirs, and make it more robust against errors by using
.tmp files.

syssrc/sys/arch/sparc64/stand/bootblk/Makefile          1.7 -> 1.9

diffstat:

 sys/arch/sparc64/stand/bootblk/Makefile |  19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r a1a77e64925b -r 7f0c742d2582 sys/arch/sparc64/stand/bootblk/Makefile
--- a/sys/arch/sparc64/stand/bootblk/Makefile   Thu Jul 27 00:03:50 2000 +0000
+++ b/sys/arch/sparc64/stand/bootblk/Makefile   Thu Jul 27 00:06:58 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2000/01/23 21:05:02 eeh Exp $
+#      $NetBSD: Makefile,v 1.7.4.1 2000/07/27 00:06:58 mycroft Exp $
 
 CURDIR=        ${.CURDIR}
 S=     ${CURDIR}/../../../..
@@ -10,7 +10,8 @@
 PROG=  bootblk
 SRCS=          bootblk.fth
 OBJS=
-CLEANFILES=    assym.fth.h machine bootblk bootblk.text
+CLEANFILES=    assym.fth.h assym.fth.h.tmp machine bootblk bootblk.text \
+               bootblk.text.tmp
 
 NOMAN=
 STRIPFLAG=
@@ -36,16 +37,18 @@
 machine:
        ln -s ../../include machine
 
-assym.fth.h: ./genassym.sh genfth.cf machine
-       sh ./genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
-           < genfth.cf > assym.fth.h
+assym.fth.h: ${.CURDIR}/genassym.sh genfth.cf machine
+       sh ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
+           <${.CURDIR}/genfth.cf >assym.fth.h.tmp && \
+           mv -f assym.fth.h.tmp assym.fth.h
 
 bootblk.text: bootblk.fth assym.fth.h
-       awk '/fload/ { print "#include \"" $$2 "\"" }; !/fload/' bootblk.fth | \
-       /usr/bin/cpp -P >bootblk.text
+       awk '/fload/ { print "#include \"" $$2 "\"" }; !/fload/' \
+           ${.CURDIR}/bootblk.fth | /usr/bin/cpp -P >bootblk.text.tmp &&
+           mv -f bootblk.text.tmp bootblk.text
 
 bootblk: bootblk.fth assym.fth.h
-       fgen -o bootblk bootblk.fth
+       fgen -o bootblk ${.CURDIR}/bootblk.fth
 
 #
 # The following are if you grab the fakeboot program from the Sun website



Home | Main Index | Thread Index | Old Index