Makefile revision 1.41
1# $NetBSD: Makefile,v 1.41 1997/05/29 14:23:02 cjs Exp $ 2 3.include <bsd.own.mk> # for configuration variables. 4 5# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW 6 7SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share 8 9.if exists(games) 10SUBDIR+= games 11.endif 12 13SUBDIR+= gnu 14 15SUBDIR+= sys 16 17.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 18SUBDIR+= domestic 19.endif 20 21.if exists(regress) 22.ifmake !(install) 23SUBDIR+= regress 24.endif 25 26regression-tests: 27 @echo Running regression tests... 28 @(cd ${.CURDIR}/regress && ${MAKE} regress) 29.endif 30 31beforeinstall: 32.ifndef DESTDIR 33 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 34.else 35 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 36.endif 37 38afterinstall: 39.ifndef NOMAN 40 (cd ${.CURDIR}/share/man && ${MAKE} makedb) 41.endif 42 43oldbuild: 44 (cd ${.CURDIR}/share/mk && ${MAKE} install) 45 ${MAKE} includes 46.if !defined(UPDATE) 47 ${MAKE} cleandir 48.endif 49 (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install) 50 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 51 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 52.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 53 (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \ 54 ${MAKE} install) 55.endif 56 ${MAKE} depend && ${MAKE} && ${MAKE} install 57 58build: 59 @# can't do domestic includes until crt0.o, etc. is built. 60 ${MAKE} EXPORTABLE_SYSTEM=1 includes 61.if !defined(UPDATE) 62 ${MAKE} cleandir 63.endif 64 (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE}) 65 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE}) 66 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE}) 67.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 68 (cd ${.CURDIR}/domestic && ${MAKE} includes) 69 (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE}) 70.endif 71 ${MAKE} depend && ${MAKE} 72 73.include <bsd.subdir.mk> 74