# @(#)Makefile 5.1.1.2 (Berkeley) 5/9/91
# $Id: Makefile,v 1.15 1993/09/24 14:13:25 rgrimes Exp $
# setenv NOCLEANDIR will prevent make cleandirs from being run
world
: directories cleandist mk includes libraries tools mdec
@echo
"--------------------------------------------------------------"
@echo
" Rebuilding ${DESTDIR} The whole thing"
@echo
"--------------------------------------------------------------"
cd
${.CURDIR
}/usr.sbin
/sendmail
/src
; make
install
cd
${.CURDIR
}/etc
; make distrib-dirs
@echo
"--------------------------------------------------------------"
@echo
" Cleaning up the source tree, and rebuilding the obj tree"
@echo
"--------------------------------------------------------------"
here
=`pwd`; dest
=/usr
/obj
/`echo $$here | sed 's,/usr/src,,'`; \
cd
$$dest; rm -rf
${SUBDIR}
find .
-name obj | xargs
-n30
rm -rf
@echo
"--------------------------------------------------------------"
@echo
" Rebuilding ${DESTDIR}/usr/share/mk"
@echo
"--------------------------------------------------------------"
# DONT DO THIS!! rm -rf ${DESTDIR}/usr/share/mk
# DONT DO THIS!! mkdir ${DESTDIR}/usr/share/mk
chown
${BINOWN}.
${BINGRP} ${DESTDIR}/usr
/share
/mk
chmod
755 ${DESTDIR}/usr
/share
/mk
cd
${.CURDIR
}/share
/mk
; make
install;
@echo
"--------------------------------------------------------------"
@echo
" Rebuilding ${DESTDIR}/usr/include"
@echo
"--------------------------------------------------------------"
rm -rf
${DESTDIR}/usr
/include
mkdir
${DESTDIR}/usr
/include
chown
${BINOWN}.
${BINGRP} ${DESTDIR}/usr
/include
chmod
755 ${DESTDIR}/usr
/include
cd
${.CURDIR
}/include; make
install
cd
${.CURDIR
}/gnu
/libg
++; make beforeinstall
cd
${.CURDIR
}/gnu
/libregex
; make beforeinstall
cd
${.CURDIR
}/lib
/libcurses
; make beforeinstall
cd
${.CURDIR
}/lib
/librpc
/rpc
; make beforeinstall
# setenv NOPROFILED if you do not want profiled libraries
@echo
"--------------------------------------------------------------"
@echo
" Rebuilding ${DESTDIR}/usr/lib"
@echo
"--------------------------------------------------------------"
rm -rf
${DESTDIR}/usr
/lib
chown
-R bin.bin
${DESTDIR}/usr
/lib
chmod
755 ${DESTDIR}/usr
/lib
cd
${.CURDIR
}/lib
; make depend
all install ${CLEANDIR} obj
cd
${.CURDIR
}/gnu
/gcc2
/libgcc
; make depend
all install ${CLEANDIR} obj
cd
${.CURDIR
}/usr.bin
/lex; make depend
all install ${CLEANDIR} obj
cd
${.CURDIR
}/gnu
/libregex
; make depend
all install ${CLEANDIR} obj
cd
${.CURDIR
}/gnu
/libmalloc
; make depend
all install ${CLEANDIR} obj
@echo
"--------------------------------------------------------------"
@echo
" Rebuilding ${DESTDIR} Compiler and Make"
@echo
"--------------------------------------------------------------"
cd
${.CURDIR
}/gnu
/gcc2
; make depend
all install ${CLEANDIR} obj
cd
${.CURDIR
}/usr.bin
/make
; make depend
all install ${CLEANDIR} obj
@echo
"--------------------------------------------------------------"
@echo
" Rebuilding ${DESTDIR}/usr/mdec"
@echo
"--------------------------------------------------------------"
cd
${.CURDIR
}/sys
/i386
/boot
; make depend
all install ${CLEANDIR}
cd
/usr
/mdec
; find . | cpio
-pdamuv
${DESTDIR}/usr
/mdec