diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2002-05-13 07:22:44 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2002-05-13 07:22:44 +0000 |
commit | 1251f88a7ca26bd952efdfbf558e3d2de1237304 (patch) | |
tree | f333a3c24fe3da35141b51c503a3c825b73ee39d /etc/Makefile | |
parent | 65e242d77ec6cad274c421e6a4939e128247dc70 (diff) |
move common distrib rules to main Makefile,
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)
Diffstat (limited to 'etc/Makefile')
-rw-r--r-- | etc/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/Makefile b/etc/Makefile index 73f1aeb6d2d..a04ed640631 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.159 2002/05/12 13:51:38 espie Exp $ +# $OpenBSD: Makefile,v 1.160 2002/05/13 07:22:42 espie Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= US/Pacific @@ -340,15 +340,12 @@ MAKEDEVARCHS+= sparc64 MAKEDEVARCHS+= sun3 #MAKEDEVARCHS+= vax -all: -# make M=${MACHINE} m4 - clean: rm -f etc.${MACHINE}/MAKEDEV cleandir: cd ${.CURDIR}; for m in ${MAKEDEVARCHS}; do \ - make MACHINE=$$m clean; done + ${MAKE} MACHINE=$$m clean; done m4: etc.${M}/MAKEDEV @@ -362,6 +359,10 @@ allarchs: MAKEDEV.sub MAKEDEV.mi cd ${.CURDIR}; for m in ${MAKEDEVARCHS}; do \ ${MAKE} M=$$m m4; done +distrib: + cd ${.CURDIR}/../distrib && \ + ${MAKE} cleandir && ${MAKE} && exec ${SUDO} ${MAKE} install + .PHONY: distribution-etc-root-var distribution distrib-dirs \ release snapshot allarchs snap_pre snap_tar snap_md m4 .include <bsd.prog.mk> |