Makefile revision 1.38
11.38Scgd#	$NetBSD: Makefile,v 1.38 1997/03/10 23:46:12 cgd 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.26Stls.ifndef DESTDIR
331.26Stls	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
341.31Stls.else
351.31Stls	(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
361.26Stls.endif
371.15Scgd
381.15Scgdafterinstall:
391.19Scgd.ifndef NOMAN
401.22Scgd	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
411.19Scgd.endif
421.15Scgd
431.15Scgdbuild:
441.32Scgd	(cd ${.CURDIR}/share/mk && ${MAKE} install)
451.33Sjtc	${MAKE} includes
461.17Scgd	${MAKE} cleandir
471.38Scgd	(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
481.22Scgd	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
491.22Scgd	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
501.32Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
511.37Scjs	(cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \
521.32Scgd	    ${MAKE} install)
531.21Scgd.endif
541.17Scgd	${MAKE} depend && ${MAKE} && ${MAKE} install
551.1Scgd
561.1Scgd.include <bsd.subdir.mk>
57