1 1.54 thorpej # $NetBSD: Makefile,v 1.54 1998/05/21 01:40:19 thorpej 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.54 thorpej .if (${MACHINE_ARCH} == "arm32") || \ 70 1.54 thorpej (${MACHINE_ARCH} == "i386") || \ 71 1.54 thorpej (${MACHINE_ARCH} == "mips") || \ 72 1.54 thorpej (${MACHINE_ARCH} == "m68k") || \ 73 1.54 thorpej (${MACHINE_ARCH} == "ns32k") || \ 74 1.54 thorpej (${MACHINE_ARCH} == "sparc") || \ 75 1.54 thorpej (${MACHINE_ARCH} == "vax") 76 1.53 thorpej .if defined(USE_EGCS) 77 1.53 thorpej (cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\ 78 1.53 thorpej ${MAKE} depend && ${MAKE} && ${MAKE} install) 79 1.53 thorpej .else 80 1.53 thorpej (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc &&\ 81 1.53 thorpej ${MAKE} depend && ${MAKE} && ${MAKE} install) 82 1.54 thorpej .endif # USE_EGCS 83 1.54 thorpej .endif # MACHINE_ARCH 84 1.44 mellon (cd ${.CURDIR}/usr.bin/lex &&\ 85 1.44 mellon ${MAKE} depend && ${MAKE} && ${MAKE} install) 86 1.44 mellon (cd ${.CURDIR}/usr.bin/yacc && \ 87 1.44 mellon ${MAKE} depend && ${MAKE} && ${MAKE} install) 88 1.44 mellon (cd ${.CURDIR}/usr.bin/xlint && \ 89 1.44 mellon ${MAKE} depend && ${MAKE} && ${MAKE} install) 90 1.32 cgd .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 91 1.46 thorpej # libtelnet depends on libdes and libkrb. libkrb depends on 92 1.46 thorpej # libcom_err. 93 1.49 lukem .if exists(domestic/lib/libdes) 94 1.46 thorpej (cd ${.CURDIR}/domestic/lib/libdes && \ 95 1.46 thorpej ${MAKE} depend && ${MAKE} && ${MAKE} install) 96 1.49 lukem .endif 97 1.49 lukem .if exists(domestic/lib/libcom_err) 98 1.46 thorpej (cd ${.CURDIR}/domestic/lib/libcom_err && \ 99 1.46 thorpej ${MAKE} depend && ${MAKE} && ${MAKE} install) 100 1.49 lukem .endif 101 1.49 lukem .if exists(domestic/lib/libkrb) 102 1.44 mellon (cd ${.CURDIR}/domestic/lib/libkrb && \ 103 1.44 mellon ${MAKE} depend && ${MAKE} && ${MAKE} install) 104 1.49 lukem .endif 105 1.37 cjs (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \ 106 1.32 cgd ${MAKE} install) 107 1.21 cgd .endif 108 1.17 cgd ${MAKE} depend && ${MAKE} && ${MAKE} install 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