diff options
author | 1998-02-16 02:04:39 +0000 | |
---|---|---|
committer | 1998-02-16 02:04:39 +0000 | |
commit | 11f9f4bc92895f78577a145d992b8a28a0dd601a (patch) | |
tree | 8c8ddbf58778755bef881e71f33ef5847cdae844 | |
parent | Fix incorrect mknod's for ipl: iplnat -> ipnat and iplstate -> ipstate (diff) | |
download | wireguard-openbsd-11f9f4bc92895f78577a145d992b8a28a0dd601a.tar.xz wireguard-openbsd-11f9f4bc92895f78577a145d992b8a28a0dd601a.zip |
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.
-rw-r--r-- | etc/etc.mac68k/Makefile.inc | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/etc/etc.mac68k/Makefile.inc b/etc/etc.mac68k/Makefile.inc index 44badf5eee9..1d7ff087929 100644 --- a/etc/etc.mac68k/Makefile.inc +++ b/etc/etc.mac68k/Makefile.inc @@ -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 |