From 297c7883fe30ae2f33a64630a5c1d69e0488b113 Mon Sep 17 00:00:00 2001 From: Rod Grimes Date: Mon, 23 Aug 1993 20:51:34 +0000 Subject: [PATCH] Added several new targets and world target to build releases with --- Makefile | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 93 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 7a2cd640a7..c7a1c0259d 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,6 @@ # @(#)Makefile 5.1.1.2 (Berkeley) 5/9/91 # -# PATCHES MAGIC LEVEL PATCH THAT GOT US HERE -# -------------------- ----- ---------------------- -# CURRENT PATCH LEVEL: 1 00128 -# -------------------- ----- ---------------------- -# -# 04 Apr 93 Rodney W. Grimes Pulled in Net/2 version string -# Added not ported comment -# Added special cases comment -# Added contrib, games, and share +# $Id$ # SUBDIR= bin contrib games gnu include lib libexec sbin share usr.bin usr.sbin @@ -16,4 +8,96 @@ SUBDIR= bin contrib games gnu include lib libexec sbin share usr.bin usr.sbin # Special cases: etc sys # Not ported: kerberosIV +# +# setenv NOCLEANDIR will prevent make cleandirs from being run +# +.if defined(NOCLEANDIR) +CLEANDIR= +.else +CLEANDIR= cleandir +.endif + +world: cleandist mk includes libraries tools mdec + @echo "--------------------------------------------------------------" + @echo " Rebuilding ${DESTDIR} The whole thing" + @echo "--------------------------------------------------------------" + @echo + make depend all install + cd usr.sbin/sendmail/src; make install + +cleandist: +.if !defined(NOCLEANDIR) + @echo "--------------------------------------------------------------" + @echo " Cleaning up the source tree, and rebuilding the obj tree" + @echo "--------------------------------------------------------------" + @echo + cd /usr/obj; rm -rf ${SUBDIR} + find . -name obj | xargs -n30 rm -rf + make cleandir + make obj +.endif + +mk: + @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 share/mk; make install; + +includes: + # + # setenv SHARED=copies if you wish the include files to be copies + # + @echo "--------------------------------------------------------------" + @echo " Rebuilding ${DESTDIR}/usr/include" + @echo "--------------------------------------------------------------" + @echo + rm -rf ${DESTDIR}/usr/include + mkdir ${DESTDIR}/usr/include + chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include + chmod 755 ${DESTDIR}/usr/include + cd include; make install + cd gnu/libg++; make beforeinstall + cd gnu/libregex; make beforeinstall + cd lib/libcurses; make beforeinstall + cd lib/librpc/rpc; make beforeinstall + +libraries: + # setenv NOPROFILED if you do not want profiled libraries + @echo "--------------------------------------------------------------" + @echo " Rebuilding ${DESTDIR}/usr/lib" + @echo "--------------------------------------------------------------" + @echo + rm -rf ${DESTDIR}/usr/lib + mkdir ${DESTDIR}/usr/lib + chown -R bin.bin ${DESTDIR}/usr/lib + chmod 755 ${DESTDIR}/usr/lib + cd lib; make depend all install ${CLEANDIR} obj + cd gnu/gcc2/libgcc; make depend all install ${CLEANDIR} obj + cd usr.bin/lex; make depend all install ${CLEANDIR} obj + cd gnu/libregex; make depend all install ${CLEANDIR} obj + +tools: + @echo "--------------------------------------------------------------" + @echo " Rebuilding ${DESTDIR} Compiler and Make" + @echo "--------------------------------------------------------------" + @echo + cd gnu/gcc2; make depend all install ${CLEANDIR} obj + cd usr.bin/make; make depend all install ${CLEANDIR} obj + +mdec: + @echo "--------------------------------------------------------------" + @echo " Rebuilding ${DESTDIR}/usr/mdec" + @echo "--------------------------------------------------------------" + @echo +.if ${MACHINE} == "i386" + cd sys/i386/boot; make depend all install ${CLEANDIR} +.if defined (DESTDIR) + cd /usr/mdec; find . | cpio -pdamuv ${DESTDIR}/usr/mdec +.endif +.endif + .include -- 2.20.1