Makefile revision 1.49
1# $NetBSD: Makefile,v 1.49 1998/02/16 10:07:31 lukem 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.ifmake build 33 @echo -n "Build started at: " 34 @date 35.endif 36.ifndef DESTDIR 37 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 38.else 39 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 40.endif 41 42afterinstall: 43.ifndef NOMAN 44 (cd ${.CURDIR}/share/man && ${MAKE} makedb) 45.endif 46.ifmake build 47 @echo -n "Build finished at: " 48 @date 49.endif 50 51build: beforeinstall 52 (cd ${.CURDIR}/share/mk && ${MAKE} install) 53 (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) 54.if exists(domestic) && !defined (EXPORTABLE_SYSTEM) 55.if exists(domestic/usr.bin/compile_et) 56 (cd ${.CURDIR}/domestic/usr.bin/compile_et && \ 57 ${MAKE} depend && ${MAKE} && \ 58 ${MAKE} install) 59.endif 60.if exists(domestic/usr.bin/make_cmds) 61 (cd ${.CURDIR}/domestic/usr.bin/make_cmds && \ 62 ${MAKE} depend && ${MAKE} && \ 63 ${MAKE} install) 64.endif 65.endif 66 ${MAKE} includes 67.if !defined(UPDATE) 68 ${MAKE} cleandir 69.endif 70 (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install) 71 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 72 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 73 (cd ${.CURDIR}/usr.bin/lex &&\ 74 ${MAKE} depend && ${MAKE} && ${MAKE} install) 75 (cd ${.CURDIR}/usr.bin/yacc && \ 76 ${MAKE} depend && ${MAKE} && ${MAKE} install) 77 (cd ${.CURDIR}/usr.bin/xlint && \ 78 ${MAKE} depend && ${MAKE} && ${MAKE} install) 79.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 80# libtelnet depends on libdes and libkrb. libkrb depends on 81# libcom_err. 82.if exists(domestic/lib/libdes) 83 (cd ${.CURDIR}/domestic/lib/libdes && \ 84 ${MAKE} depend && ${MAKE} && ${MAKE} install) 85.endif 86.if exists(domestic/lib/libcom_err) 87 (cd ${.CURDIR}/domestic/lib/libcom_err && \ 88 ${MAKE} depend && ${MAKE} && ${MAKE} install) 89.endif 90.if exists(domestic/lib/libkrb) 91 (cd ${.CURDIR}/domestic/lib/libkrb && \ 92 ${MAKE} depend && ${MAKE} && ${MAKE} install) 93.endif 94 (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \ 95 ${MAKE} install) 96.endif 97 ${MAKE} depend && ${MAKE} && ${MAKE} install 98 99.include <bsd.subdir.mk> 100