Makefile revision 1.33
11.33Sjtc#	$NetBSD: Makefile,v 1.33 1996/04/25 00:47:25 jtc 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.14ScgdSUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games
81.8ScgdSUBDIR+= gnu
91.12Scgd
101.12ScgdSUBDIR+= sys
111.9Scgd
121.21Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
131.21ScgdSUBDIR+= domestic
141.21Scgd.endif
151.21Scgd
161.13Sbrezak.if exists(regress)
171.9Scgd.ifmake !(install)
181.9ScgdSUBDIR+= regress
191.9Scgd.endif
201.9Scgd
211.10Scgdregression-tests:
221.10Scgd	@echo Running regression tests...
231.22Scgd	@(cd ${.CURDIR}/regress && ${MAKE} regress)
241.13Sbrezak.endif
251.20Scgd
261.26Stlsbeforeinstall:
271.26Stls.ifndef DESTDIR
281.26Stls	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
291.31Stls.else
301.31Stls	(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
311.26Stls.endif
321.15Scgd
331.15Scgdafterinstall:
341.19Scgd.ifndef NOMAN
351.22Scgd	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
361.19Scgd.endif
371.15Scgd
381.15Scgdbuild:
391.32Scgd	(cd ${.CURDIR}/share/mk && ${MAKE} install)
401.33Sjtc	${MAKE} includes
411.32Scgd	(cd ${.CURDIR}/include && ${MAKE} install)
421.32Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
431.28Sjtc	(cd ${.CURDIR}/domestic/include && ${MAKE} install)
441.26Stls.endif
451.17Scgd	${MAKE} cleandir
461.22Scgd	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
471.22Scgd	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
481.32Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
491.32Scgd	# XXX should do the whole of domestic/lib
501.32Scgd	(cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && \
511.32Scgd	    ${MAKE} install)
521.21Scgd.endif
531.17Scgd	${MAKE} depend && ${MAKE} && ${MAKE} install
541.1Scgd
551.1Scgd.include <bsd.subdir.mk>
56