Browse Source

Explicitly chdir when building snapshot kernels and their associated

tarballs.  In a related effort, do everything that has a different chdir
root (ie, config && make depend etc) in a subshell.
Thanks to Hans for the initial prompting on this.
OPENBSD_2_3
gene 27 years ago
parent
commit
48c56afda5
1 changed files with 13 additions and 11 deletions
  1. +13
    -11
      src/etc/etc.mac68k/Makefile.inc

+ 13
- 11
src/etc/etc.mac68k/Makefile.inc View File

@ -1,19 +1,21 @@
# $OpenBSD: Makefile.inc,v 1.4 1997/10/06 20:10:52 gene Exp $
# $OpenBSD: Makefile.inc,v 1.5 1998/02/16 02:04:39 gene Exp $
# etc.mac68k/Makefile.inc -- mac68k-specific etc Makefile targets
.ifdef DESTDIR
snap_md: bsd-generic bsd-genericsbc
tar cf - ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC/bsd \
| ${GZIP} ${GZIPFLAGS} >${DESTDIR}/snapshot/bsd-generic.tar${GZIPEXT}
tar cf - ${.CURDIR}/../sys/arch/mac68k/compile/GENERICSBC/bsd \
| ${GZIP} ${GZIPFLAGS} >${DESTDIR}/snapshot/bsd-genericsbc.tar${GZIPEXT}
(cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC;
tar cf - bsd \
| ${GZIP} ${GZIPFLAGS} >${DESTDIR}/snapshot/bsd-generic.tar${GZIPEXT})
(cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERICSBC;
tar cf - bsd \
| ${GZIP} ${GZIPFLAGS} >${DESTDIR}/snapshot/bsd-genericsbc.tar${GZIPEXT})
bsd-generic:
cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERIC
cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC && \
make clean && make depend && make
(cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERIC)
(cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC && \
make clean && make depend && make)
bsd-genericsbc:
cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERICSBC
cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERICSBC && \
make clean && make depend && make
(cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERICSBC)
(cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERICSBC && \
make clean && make depend && make)
.endif # DESTDIR check

Loading…
Cancel
Save