Makefile revision 1.72
1# $NetBSD: Makefile,v 1.72 1998/10/18 20:41:39 thorpej Exp $ 2 3.include <bsd.own.mk> # for configuration variables. 4 5HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo 6 7# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW 8 9SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys 10 11.if exists(games) 12SUBDIR+= games 13.endif 14 15SUBDIR+= gnu 16# This is needed for libstdc++ and gen-params. 17includes-gnu: includes-include includes-sys 18 19.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 20SUBDIR+= domestic 21.endif 22 23.if exists(regress) 24.ifmake !(install) 25SUBDIR+= regress 26.endif 27 28regression-tests: 29 @echo Running regression tests... 30 @(cd ${.CURDIR}/regress && ${MAKE} regress) 31.endif 32 33beforeinstall: 34.ifmake build 35 @echo -n "Build started at: " 36 @date 37.endif 38.ifndef DESTDIR 39 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 40.else 41 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 42.endif 43 44afterinstall: 45.if !defined(NOMAN) && !defined(NOSHARE) 46 (cd ${.CURDIR}/share/man && ${MAKE} makedb) 47.endif 48 49build: beforeinstall 50.if !defined(NOSHARE) 51 (cd ${.CURDIR}/share/mk && ${MAKE} install) 52 (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) 53.endif 54.if !defined(UPDATE) 55 ${MAKE} cleandir 56.endif 57.if defined(USE_EGCS) && empty(HAVE_GCC28) 58.if defined(DESTDIR) 59 @echo "*** CAPUTE!" 60 @echo " You attempted to compile the world with egcs. You must" 61 @echo " first install a native egcs compiler." 62 false 63.else 64 (cd ${.CURDIR}/gnu/usr.bin/egcs && \ 65 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install && \ 66 ${MAKE} cleandir) 67.endif 68.endif 69 ${MAKE} includes 70 (cd ${.CURDIR}/lib/csu && \ 71 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 72 (cd ${.CURDIR}/lib && \ 73 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 74 (cd ${.CURDIR}/gnu/lib && \ 75 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 76.if !defined(USE_EGCS) 77.if (${MACHINE_ARCH} != "alpha") && \ 78 (${MACHINE_ARCH} != "powerpc") 79 (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc && \ 80 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 81.endif 82.endif 83.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 84# libtelnet depends on libdes and libkrb. libkrb depends on 85# libcom_err. 86.if exists(domestic/lib/libdes) 87 (cd ${.CURDIR}/domestic/lib/libdes && \ 88 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 89.endif 90.if exists(domestic/lib/libcom_err) 91 (cd ${.CURDIR}/domestic/lib/libcom_err && \ 92 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 93.endif 94.if exists(domestic/lib/libkrb) 95 (cd ${.CURDIR}/domestic/lib/libkrb && \ 96 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 97.endif 98 (cd ${.CURDIR}/domestic/lib && \ 99 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 100.endif 101.if !defined(DESTDIR) 102 if [ -f /sbin/ldconfig ]; then \ 103 /sbin/ldconfig -m /usr/lib; \ 104 fi 105.endif 106 ${MAKE} depend && ${MAKE} && ${MAKE} install 107 @echo -n "Build finished at: " 108 @date 109 110.include <bsd.subdir.mk> 111