head	1.8;
access;
symbols;
locks; strict;
comment	@# @;


1.8
date	94.07.27.19.17.42;	author md;	state Exp;
branches;
next	1.7;

1.7
date	94.05.22.13.24.36;	author md;	state Exp;
branches;
next	1.6;

1.6
date	94.03.27.20.03.57;	author roger;	state Exp;
branches;
next	1.5;

1.5
date	94.03.02.19.30.09;	author md;	state Exp;
branches;
next	1.4;

1.4
date	92.12.12.10.46.50;	author md;	state Exp;
branches;
next	1.3;

1.3
date	92.12.12.09.41.28;	author md;	state Exp;
branches;
next	1.2;

1.2
date	92.12.10.19.22.12;	author md;	state Exp;
branches;
next	1.1;

1.1
date	90.07.01.05.36.10;	author md;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Remove pgrm subdirectory.
@
text
@#	@@(#)Makefile	4.22 (Berkeley) 6/30/90

SUBDIR=	bin games include kerberosIV lib libexec old sbin \
	share usr.bin usr.sbin usr contrib
.if ${MACHINE} == "rt"
SUBDIR+=usr.ibm
.endif

build:
	${MAKE} cleandir

	@@echo "+++ includes"
	cd include; ${MAKE} depend all install clean

.if ${MACHINE} == "vax" || ${MACHINE} == "tahoe"
	@@echo "+++ C preprocessor, compiler, loader"
	cd pgrm/cpp; ${MAKE} depend all install clean
	cd libexec/pcc; ${MAKE} depend all install clean
	cd pgrm/ld; ${MAKE} depend all install clean

	@@echo "+++ C library"
	cd lib/libc; ${MAKE} depend all install clean

	@@echo "+++ C preprocessor, compiler, loader (second time)"
	cd pgrm/cpp; ${MAKE} all install
	cd libexec/pcc; ${MAKE} all install
	cd pgrm/ld; ${MAKE} all install
.elif ${MACHINE} == "rt"
	@@echo "+++ IBM specific commands"
	cd usr.ibm; ${MAKE} all
.endif

	@@echo "+++ libraries"
	cd lib; ${MAKE} depend all install all
	cd kerberosIV; ${MAKE} depend all install all

	@@echo "+++ C library tags"
	cd lib/libc; rm -f tags; ${MAKE} tags; \
	    install -c -o ${BINOWN} -g ${BINGRP} -m 444 tags /usr/libdata/tags

	${MAKE} depend all

OBJ=	/usr/obj
shadow:
	@@-for file in \
	    `find ${SUBDIR:S/^/-f /g} name SCCS prune or name obj print`; do \
		d=`dirname $$file`; \
		echo ${OBJ}/$$d; \
		mkdir -p ${OBJ}/$$d > /dev/null 2>&1 ; \
		chown bin.bin ${OBJ}/$$d; \
	done

cscope:
	@@echo "===> Building cscope databases..."
	@@-for d in ${SUBDIR} sys; do \
	    echo "===> $$d"; \
	    (cd $$d; \
	    echo "===>   Generating cscope file list..."; \
	    find . -type f -name '*\.[chlyCGHL]' -depth -print | \
		egrep -v '/\.local' | egrep -v '/\.old' | \
		egrep -v '/SCCS/' > cscope.files; \
	    echo "===>   Populating cscope database..."; \
	    cscope -b); \
	done

cscope.full:
	@@echo "===> Building full cscope database..."
	@@find . -type f -name '*\.[chlyCGHL]' -depth -print | \
		egrep -v '/\.local' | egrep -v '/\.old' | \
		egrep -v '/SCCS/' > cscope.files
	@@echo "===> Populating full cscope database..."
	@@cscope -b

.include <bsd.subdir.mk>
@


1.7
log
@changes from Mark.
@
text
@d3 1
a3 1
SUBDIR=	bin games include kerberosIV lib libexec pgrm old sbin \
@


1.6
log
@visit usr.ibm on a make from this level.
@
text
@d3 1
a3 1
SUBDIR=	bin games include kerberosIV-bsd44 lib libexec old pgrm sbin \
d6 1
a6 1
SUBDIR+= usr.ibm
d52 21
@


1.5
log
@use kerberosIV-bsd44 instead of kerberosIV otherwise a "make shadow"
will fail.
@
text
@d5 3
@


1.4
log
@add usr to subdirs to pick up /usr/mdec on install
@
text
@d3 1
a3 1
SUBDIR=	bin games include kerberosIV lib libexec old pgrm sbin \
@


1.3
log
@put contrib at the end of subdirs so that a make install of it will
override the system ones.
@
text
@d4 1
a4 1
	share usr.bin usr.sbin contrib
@


1.2
log
@add RT specific processing.
@
text
@d3 2
a4 2
SUBDIR=	bin contrib games include kerberosIV lib libexec old pgrm sbin \
	share usr.bin usr.sbin
@


1.1
log
@Initial revision
@
text
@d25 3
@
