make -> ${MAKE} add phony targets remove unnecessary subshells install kernel in a separate target from building. some SUDO. okay deraadt@ (checked bootstrap on i386, should be safe elsewhere, and trivial to fix anyways)OPENBSD_3_2
@ -1,24 +1,23 @@ | |||
# $OpenBSD: Makefile.inc,v 1.12 2001/03/05 14:32:10 deraadt Exp $ | |||
# $OpenBSD: Makefile.inc,v 1.13 2002/05/13 07:22:42 espie Exp $ | |||
# etc.alpha/Makefile.inc -- alpha-specific etc Makefile targets | |||
.ifdef DESTDIR | |||
snap_md: bsd distrib boot | |||
cp ${.CURDIR}/../sys/arch/alpha/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
bsd: | |||
cd ${.CURDIR}/../sys/arch/alpha/conf && config GENERIC | |||
cd ${.CURDIR}/../sys/arch/alpha/compile/GENERIC && \ | |||
make clean && make depend && make | |||
cp ${.CURDIR}/../sys/arch/alpha/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
${MAKE} clean && ${MAKE} depend && exec ${MAKE} | |||
distrib: | |||
cd ${.CURDIR}/../distrib && \ | |||
make cleandir && make && make install | |||
boot: | |||
cp ${DESTDIR}/usr/mdec/boot ${DESTDIR}/snapshot | |||
cp ${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/snapshot | |||
cp ${DESTDIR}/usr/mdec/netboot ${DESTDIR}/snapshot | |||
.PHONY: bsd boot | |||
.endif # DESTDIR check |
@ -1,29 +1,27 @@ | |||
# $OpenBSD: Makefile.inc,v 1.16 1999/08/18 17:27:14 downsj Exp $ | |||
# $OpenBSD: Makefile.inc,v 1.17 2002/05/13 07:22:42 espie Exp $ | |||
# etc.hp300/Makefile.inc -- hp300-specific etc Makefile targets | |||
.ifdef DESTDIR | |||
snap_md: bsd bsd.dl bootblocks distrib | |||
cp ${.CURDIR}/../sys/arch/hp300/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
cp ${.CURDIR}/../sys/arch/hp300/compile/DISKLESS/bsd \ | |||
${DESTDIR}/snapshot/bsd.dl | |||
bsd: | |||
cd ${.CURDIR}/../sys/arch/hp300/conf && config GENERIC | |||
cd ${.CURDIR}/../sys/arch/hp300/compile/GENERIC && \ | |||
make clean && make depend && make | |||
cp ${.CURDIR}/../sys/arch/hp300/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
${MAKE} clean && ${MAKE} depend && exec ${MAKE} | |||
bsd.dl: | |||
cd ${.CURDIR}/../sys/arch/hp300/conf && config DISKLESS | |||
cd ${.CURDIR}/../sys/arch/hp300/compile/DISKLESS && \ | |||
make clean && make depend && make | |||
cp ${.CURDIR}/../sys/arch/hp300/compile/DISKLESS/bsd \ | |||
${DESTDIR}/snapshot/bsd.dl | |||
${MAKE} clean && ${MAKE} depend && exec ${MAKE} | |||
bootblocks: | |||
cp ${DESTDIR}/usr/mdec/uboot.lif ${DESTDIR}/snapshot/SYS_UBOOT | |||
cp ${DESTDIR}/usr/mdec/cdboot.lif ${DESTDIR}/snapshot/SYS_CDBOOT | |||
distrib: | |||
cd ${.CURDIR}/../distrib && make cleandir && \ | |||
make && make install | |||
.PHONY: bsd bsd.dl bootblocks | |||
.endif # DESTDIR check |
@ -1,17 +1,15 @@ | |||
# $OpenBSD: Makefile.inc,v 1.1 1999/11/30 21:25:38 mickey Exp $ | |||
# $OpenBSD: Makefile.inc,v 1.2 2002/05/13 07:22:42 espie Exp $ | |||
.ifdef DESTDIR | |||
snap_md: bsd distrib | |||
cp ${.CURDIR}/../sys/arch/hppa/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
bsd: | |||
cd ${.CURDIR}/../sys/arch/hppa/conf && config GENERIC | |||
cd ${.CURDIR}/../sys/arch/hppa/compile/GENERIC && \ | |||
make clean && make depend && make | |||
cp ${.CURDIR}/../sys/arch/hppa/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
${MAKE} clean && ${MAKE} depend && exec ${MAKE} | |||
distrib: | |||
cd ${.CURDIR}/../distrib && make cleandir && \ | |||
make && make install | |||
.PHONY: bsd | |||
.endif # DESTDIR check |
@ -1,21 +1,19 @@ | |||
# $OpenBSD: Makefile.inc,v 1.10 1997/09/26 19:51:28 deraadt Exp $ | |||
# $OpenBSD: Makefile.inc,v 1.11 2002/05/13 07:22:42 espie Exp $ | |||
# etc.i386/Makefile.inc -- i386-specific etc Makefile targets | |||
.ifdef DESTDIR | |||
snap_md: bsd notes distrib | |||
cp ${.CURDIR}/../sys/arch/i386/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
bsd: | |||
cd ${.CURDIR}/../sys/arch/i386/conf && config GENERIC | |||
cd ${.CURDIR}/../sys/arch/i386/compile/GENERIC && \ | |||
make clean && make depend && make | |||
cp ${.CURDIR}/../sys/arch/i386/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
${MAKE} clean && ${MAKE} depend && exec ${MAKE} | |||
notes: | |||
cp ${.CURDIR}/etc.i386/INSTALL.* ${DESTDIR}/snapshot | |||
distrib: | |||
cd ${.CURDIR}/../distrib && make cleandir && \ | |||
make && make install | |||
.PHONY: bsd notes | |||
.endif # DESTDIR check |
@ -1,18 +1,18 @@ | |||
# $OpenBSD: Makefile.inc,v 1.3 1999/03/03 05:47:08 smurph Exp $ | |||
# $OpenBSD: Makefile.inc,v 1.4 2002/05/13 07:22:43 espie Exp $ | |||
# etc.mvme88k/Makefile.inc -- mvme88k-specific etc Makefile targets | |||
.ifdef DESTDIR | |||
snap_md: bsd-generic bootblocks | |||
cp ${.CURDIR}/../sys/arch/mvme88k/compile/GENERIC/bsd.gz \ | |||
${DESTDIR}/snapshot/bsd-generic.gz | |||
bsd-generic: | |||
cd ${.CURDIR}/../sys/arch/mvme88k/conf && config GENERIC | |||
cd ${.CURDIR}/../sys/arch/mvme88k/compile/GENERIC && \ | |||
make clean && make depend && make && gzip -9 bsd | |||
${MAKE} clean && ${MAKE} depend && ${MAKE} && gzip -9 bsd | |||
bootblocks: | |||
cp ${DESTDIR}/usr/mdec/* ${DESTDIR}/snapshot/ | |||
distrib: | |||
cd ${.CURDIR}/../distrib && make cleandir && \ | |||
make && make install | |||
.PHONY: bsd-generic bootblocks | |||
.endif # DESTDIR check |
@ -1,24 +1,22 @@ | |||
# $OpenBSD: Makefile.inc,v 1.3 2002/02/15 01:33:31 deraadt Exp $ | |||
# $OpenBSD: Makefile.inc,v 1.4 2002/05/13 07:22:43 espie Exp $ | |||
# | |||
# etc.vax/Makefile.inc -- vax-specific etc Makefile targets | |||
# | |||
.ifdef DESTDIR | |||
snap_md: bsd bootblocks distrib | |||
cp ${.CURDIR}/../sys/arch/vax/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
bsd: | |||
cd ${.CURDIR}/../sys/arch/vax/conf && config GENERIC | |||
cd ${.CURDIR}/../sys/arch/vax/compile/GENERIC && \ | |||
make clean && make depend && make | |||
cp ${.CURDIR}/../sys/arch/vax/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
${MAKE} clean && ${MAKE} depend && exec ${MAKE} | |||
bootblocks: | |||
cp ${DESTDIR}/usr/mdec/boot ${DESTDIR}/snapshot | |||
mopa.out ${DESTDIR}/usr/mdec/boot ${DESTDIR}/snapshot/boot.mop | |||
distrib: | |||
cd ${.CURDIR}/../distrib && make cleandir && \ | |||
make && make install | |||
.PHONY: bsd bootblocks | |||
.endif # DESTDIR check |