Makefile revision 1.46
11.46Sthorpej#	$NetBSD: Makefile,v 1.46 1998/02/10 04:38:13 thorpej Exp $
21.32Scgd
31.32Scgd.include <bsd.own.mk>			# for configuration variables.
41.4Scgd
51.4Scgd# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
61.2Scgd
71.36SexplorerSUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share
81.36Sexplorer
91.36Sexplorer.if exists(games)
101.36SexplorerSUBDIR+= games
111.36Sexplorer.endif
121.36Sexplorer
131.8ScgdSUBDIR+= gnu
141.12Scgd
151.12ScgdSUBDIR+= sys
161.9Scgd
171.21Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
181.21ScgdSUBDIR+= domestic
191.21Scgd.endif
201.21Scgd
211.13Sbrezak.if exists(regress)
221.9Scgd.ifmake !(install)
231.9ScgdSUBDIR+= regress
241.9Scgd.endif
251.9Scgd
261.10Scgdregression-tests:
271.10Scgd	@echo Running regression tests...
281.22Scgd	@(cd ${.CURDIR}/regress && ${MAKE} regress)
291.13Sbrezak.endif
301.20Scgd
311.26Stlsbeforeinstall:
321.45Sperry.ifmake build
331.45Sperry	@echo -n "Build started at: "
341.45Sperry	@date
351.45Sperry.endif
361.26Stls.ifndef DESTDIR
371.26Stls	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
381.31Stls.else
391.31Stls	(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
401.26Stls.endif
411.15Scgd
421.15Scgdafterinstall:
431.19Scgd.ifndef NOMAN
441.22Scgd	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
451.45Sperry.endif
461.45Sperry.ifmake build
471.45Sperry	@echo -n "Build finished at: "
481.45Sperry	@date
491.19Scgd.endif
501.15Scgd
511.43Sthorpejbuild: beforeinstall
521.32Scgd	(cd ${.CURDIR}/share/mk && ${MAKE} install)
531.44Smellon.if exists(domestic) && !defined (EXPORTABLE_SYSTEM)
541.44Smellon	(cd ${.CURDIR}/domestic/usr.bin/compile_et && \
551.44Smellon	    ${MAKE} depend && ${MAKE} && \
561.44Smellon	    ${MAKE} install)
571.44Smellon	(cd ${.CURDIR}/domestic/usr.bin/make_cmds && \
581.44Smellon	    ${MAKE} depend && ${MAKE} && \
591.44Smellon	    ${MAKE} install)
601.44Smellon.endif
611.33Sjtc	${MAKE} includes
621.39Schristos.if !defined(UPDATE)
631.17Scgd	${MAKE} cleandir
641.39Schristos.endif
651.38Scgd	(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
661.22Scgd	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
671.22Scgd	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
681.44Smellon	(cd ${.CURDIR}/usr.bin/lex &&\
691.44Smellon	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
701.44Smellon	(cd ${.CURDIR}/usr.bin/yacc && \
711.44Smellon	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
721.44Smellon	(cd ${.CURDIR}/usr.bin/xlint && \
731.44Smellon	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
741.32Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
751.46Sthorpej# libtelnet depends on libdes and libkrb.  libkrb depends on
761.46Sthorpej# libcom_err.
771.46Sthorpej	(cd ${.CURDIR}/domestic/lib/libdes && \
781.46Sthorpej	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
791.46Sthorpej	(cd ${.CURDIR}/domestic/lib/libcom_err && \
801.46Sthorpej	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
811.44Smellon	(cd ${.CURDIR}/domestic/lib/libkrb && \
821.44Smellon	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
831.37Scjs	(cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \
841.32Scgd	    ${MAKE} install)
851.21Scgd.endif
861.17Scgd	${MAKE} depend && ${MAKE} && ${MAKE} install
871.1Scgd
881.1Scgd.include <bsd.subdir.mk>
89