1 1.55 tv # $NetBSD: Makefile,v 1.55 1998/05/21 11:53:49 tv Exp $ 2 1.32 cgd 3 1.32 cgd .include <bsd.own.mk> # for configuration variables. 4 1.4 cgd 5 1.4 cgd # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW 6 1.2 cgd 7 1.52 mycroft SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys 8 1.36 explorer 9 1.36 explorer .if exists(games) 10 1.36 explorer SUBDIR+= games 11 1.36 explorer .endif 12 1.36 explorer 13 1.8 cgd SUBDIR+= gnu 14 1.52 mycroft # This is needed for libstdc++ and gen-params. 15 1.52 mycroft includes-gnu: includes-include includes-sys 16 1.9 cgd 17 1.21 cgd .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 18 1.21 cgd SUBDIR+= domestic 19 1.21 cgd .endif 20 1.21 cgd 21 1.13 brezak .if exists(regress) 22 1.9 cgd .ifmake !(install) 23 1.9 cgd SUBDIR+= regress 24 1.9 cgd .endif 25 1.9 cgd 26 1.10 cgd regression-tests: 27 1.10 cgd @echo Running regression tests... 28 1.22 cgd @(cd ${.CURDIR}/regress && ${MAKE} regress) 29 1.13 brezak .endif 30 1.20 cgd 31 1.26 tls beforeinstall: 32 1.45 perry .ifmake build 33 1.45 perry @echo -n "Build started at: " 34 1.45 perry @date 35 1.45 perry .endif 36 1.26 tls .ifndef DESTDIR 37 1.26 tls (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 38 1.31 tls .else 39 1.31 tls (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 40 1.26 tls .endif 41 1.15 cgd 42 1.15 cgd afterinstall: 43 1.19 cgd .ifndef NOMAN 44 1.22 cgd (cd ${.CURDIR}/share/man && ${MAKE} makedb) 45 1.45 perry .endif 46 1.15 cgd 47 1.43 thorpej build: beforeinstall 48 1.32 cgd (cd ${.CURDIR}/share/mk && ${MAKE} install) 49 1.47 thorpej (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) 50 1.49 lukem .if exists(domestic) && !defined (EXPORTABLE_SYSTEM) 51 1.49 lukem .if exists(domestic/usr.bin/compile_et) 52 1.44 mellon (cd ${.CURDIR}/domestic/usr.bin/compile_et && \ 53 1.44 mellon ${MAKE} depend && ${MAKE} && \ 54 1.44 mellon ${MAKE} install) 55 1.49 lukem .endif 56 1.49 lukem .if exists(domestic/usr.bin/make_cmds) 57 1.44 mellon (cd ${.CURDIR}/domestic/usr.bin/make_cmds && \ 58 1.44 mellon ${MAKE} depend && ${MAKE} && \ 59 1.44 mellon ${MAKE} install) 60 1.44 mellon .endif 61 1.49 lukem .endif 62 1.39 christos .if !defined(UPDATE) 63 1.17 cgd ${MAKE} cleandir 64 1.39 christos .endif 65 1.51 tv ${MAKE} includes 66 1.38 cgd (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install) 67 1.22 cgd (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 68 1.22 cgd (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) 69 1.44 mellon (cd ${.CURDIR}/usr.bin/lex &&\ 70 1.44 mellon ${MAKE} depend && ${MAKE} && ${MAKE} install) 71 1.44 mellon (cd ${.CURDIR}/usr.bin/yacc && \ 72 1.44 mellon ${MAKE} depend && ${MAKE} && ${MAKE} install) 73 1.44 mellon (cd ${.CURDIR}/usr.bin/xlint && \ 74 1.44 mellon ${MAKE} depend && ${MAKE} && ${MAKE} install) 75 1.32 cgd .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 76 1.46 thorpej # libtelnet depends on libdes and libkrb. libkrb depends on 77 1.46 thorpej # libcom_err. 78 1.49 lukem .if exists(domestic/lib/libdes) 79 1.46 thorpej (cd ${.CURDIR}/domestic/lib/libdes && \ 80 1.46 thorpej ${MAKE} depend && ${MAKE} && ${MAKE} install) 81 1.49 lukem .endif 82 1.49 lukem .if exists(domestic/lib/libcom_err) 83 1.46 thorpej (cd ${.CURDIR}/domestic/lib/libcom_err && \ 84 1.46 thorpej ${MAKE} depend && ${MAKE} && ${MAKE} install) 85 1.49 lukem .endif 86 1.49 lukem .if exists(domestic/lib/libkrb) 87 1.44 mellon (cd ${.CURDIR}/domestic/lib/libkrb && \ 88 1.44 mellon ${MAKE} depend && ${MAKE} && ${MAKE} install) 89 1.49 lukem .endif 90 1.37 cjs (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \ 91 1.32 cgd ${MAKE} install) 92 1.21 cgd .endif 93 1.17 cgd ${MAKE} depend && ${MAKE} && ${MAKE} install 94 1.55 tv .if (${MACHINE_ARCH} == "arm32") || \ 95 1.55 tv (${MACHINE_ARCH} == "i386") || \ 96 1.55 tv (${MACHINE_ARCH} == "mips") || \ 97 1.55 tv (${MACHINE_ARCH} == "m68k") || \ 98 1.55 tv (${MACHINE_ARCH} == "ns32k") || \ 99 1.55 tv (${MACHINE_ARCH} == "sparc") || \ 100 1.55 tv (${MACHINE_ARCH} == "vax") 101 1.55 tv .if defined(USE_EGCS) 102 1.55 tv (cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\ 103 1.55 tv ${MAKE} depend && ${MAKE} && ${MAKE} install) 104 1.55 tv .else 105 1.55 tv (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc &&\ 106 1.55 tv ${MAKE} depend && ${MAKE} && ${MAKE} install) 107 1.55 tv .endif # USE_EGCS 108 1.55 tv .endif # MACHINE_ARCH 109 1.50 mellon @echo -n "Build finished at: " 110 1.50 mellon @date 111 1.1 cgd 112 1.1 cgd .include <bsd.subdir.mk> 113