Makefile revision 1.55
11.55Stv#	$NetBSD: Makefile,v 1.55 1998/05/21 11:53:49 tv 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.52SmycroftSUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
81.36Sexplorer
91.36Sexplorer.if exists(games)
101.36SexplorerSUBDIR+= games
111.36Sexplorer.endif
121.36Sexplorer
131.8ScgdSUBDIR+= gnu
141.52Smycroft# This is needed for libstdc++ and gen-params.
151.52Smycroftincludes-gnu: includes-include includes-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.15Scgd
471.43Sthorpejbuild: beforeinstall
481.32Scgd	(cd ${.CURDIR}/share/mk && ${MAKE} install)
491.47Sthorpej	(cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)
501.49Slukem.if exists(domestic) && !defined (EXPORTABLE_SYSTEM)
511.49Slukem.if exists(domestic/usr.bin/compile_et)
521.44Smellon	(cd ${.CURDIR}/domestic/usr.bin/compile_et && \
531.44Smellon	    ${MAKE} depend && ${MAKE} && \
541.44Smellon	    ${MAKE} install)
551.49Slukem.endif
561.49Slukem.if exists(domestic/usr.bin/make_cmds)
571.44Smellon	(cd ${.CURDIR}/domestic/usr.bin/make_cmds && \
581.44Smellon	    ${MAKE} depend && ${MAKE} && \
591.44Smellon	    ${MAKE} install)
601.44Smellon.endif
611.49Slukem.endif
621.39Schristos.if !defined(UPDATE)
631.17Scgd	${MAKE} cleandir
641.39Schristos.endif
651.51Stv	${MAKE} includes
661.38Scgd	(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
671.22Scgd	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
681.22Scgd	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
691.44Smellon	(cd ${.CURDIR}/usr.bin/lex &&\
701.44Smellon	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
711.44Smellon	(cd ${.CURDIR}/usr.bin/yacc && \
721.44Smellon	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
731.44Smellon	(cd ${.CURDIR}/usr.bin/xlint && \
741.44Smellon	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
751.32Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
761.46Sthorpej# libtelnet depends on libdes and libkrb.  libkrb depends on
771.46Sthorpej# libcom_err.
781.49Slukem.if exists(domestic/lib/libdes)
791.46Sthorpej	(cd ${.CURDIR}/domestic/lib/libdes && \
801.46Sthorpej	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
811.49Slukem.endif
821.49Slukem.if exists(domestic/lib/libcom_err)
831.46Sthorpej	(cd ${.CURDIR}/domestic/lib/libcom_err && \
841.46Sthorpej	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
851.49Slukem.endif
861.49Slukem.if exists(domestic/lib/libkrb)
871.44Smellon	(cd ${.CURDIR}/domestic/lib/libkrb && \
881.44Smellon	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
891.49Slukem.endif
901.37Scjs	(cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \
911.32Scgd	    ${MAKE} install)
921.21Scgd.endif
931.17Scgd	${MAKE} depend && ${MAKE} && ${MAKE} install
941.55Stv.if	(${MACHINE_ARCH} == "arm32") || \
951.55Stv	(${MACHINE_ARCH} == "i386") || \
961.55Stv	(${MACHINE_ARCH} == "mips") || \
971.55Stv	(${MACHINE_ARCH} == "m68k") || \
981.55Stv	(${MACHINE_ARCH} == "ns32k") || \
991.55Stv	(${MACHINE_ARCH} == "sparc") || \
1001.55Stv	(${MACHINE_ARCH} == "vax")
1011.55Stv.if defined(USE_EGCS)
1021.55Stv	(cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\
1031.55Stv	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
1041.55Stv.else
1051.55Stv	(cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc &&\
1061.55Stv	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
1071.55Stv.endif # USE_EGCS
1081.55Stv.endif # MACHINE_ARCH
1091.50Smellon	@echo -n "Build finished at: "
1101.50Smellon	@date
1111.1Scgd
1121.1Scgd.include <bsd.subdir.mk>
113