[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src

Annotation of src/Makefile, Revision 1.77

1.77    ! cjs         1: #      $NetBSD: Makefile,v 1.76 1998/12/22 11:21:09 bouyer Exp $
1.32      cgd         2:
                      3: .include <bsd.own.mk>                  # for configuration variables.
1.4       cgd         4:
1.76      bouyer      5: # Configurations variables (can be set either in /etc/mk.conf or
                      6: # as environement variable
                      7: # NBUILDJOBS: the number of jobs to start in parallel in a 'make build'.
                      8: #             defaults to 1
                      9: # NOMAN: if set to 1, don't build and install man pages
                     10: # NOSHARE: if set to 1, don't build or install /usr/share stuffs
                     11: # UPDATE: if set to 1, don't do a 'make cleandir' before compile
                     12: # DESTDIR: The target directory for installation (default to '/',
                     13: #          which mean the current system is updated).
                     14:
1.58      tv         15: HAVE_GCC28!=   ${CXX} --version | egrep "^(2\.8|egcs)" ; echo
                     16:
1.76      bouyer     17: .if defined(NBUILDJOBS)
                     18: _J= -j${NBUILDJOBS}
                     19: .endif
                     20:
1.4       cgd        21: # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
1.2       cgd        22:
1.52      mycroft    23: SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
1.36      explorer   24:
                     25: .if exists(games)
                     26: SUBDIR+= games
                     27: .endif
                     28:
1.8       cgd        29: SUBDIR+= gnu
1.52      mycroft    30: # This is needed for libstdc++ and gen-params.
                     31: includes-gnu: includes-include includes-sys
1.9       cgd        32:
1.77    ! cjs        33: .if exists(domestic) && (!defined(EXPORTABLE_SYSTEM) ||\
        !            34:     make(obj) || make(clean) || make(cleandir) || make(distclean))
1.21      cgd        35: SUBDIR+= domestic
                     36: .endif
                     37:
1.13      brezak     38: .if exists(regress)
1.9       cgd        39: .ifmake !(install)
                     40: SUBDIR+= regress
                     41: .endif
                     42:
1.10      cgd        43: regression-tests:
                     44:        @echo Running regression tests...
1.22      cgd        45:        @(cd ${.CURDIR}/regress && ${MAKE} regress)
1.13      brezak     46: .endif
1.20      cgd        47:
1.26      tls        48: beforeinstall:
1.45      perry      49: .ifmake build
                     50:        @echo -n "Build started at: "
                     51:        @date
                     52: .endif
1.26      tls        53: .ifndef DESTDIR
                     54:        (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
1.31      tls        55: .else
                     56:        (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
1.26      tls        57: .endif
1.15      cgd        58:
                     59: afterinstall:
1.68      lukem      60: .if !defined(NOMAN) && !defined(NOSHARE)
1.22      cgd        61:        (cd ${.CURDIR}/share/man && ${MAKE} makedb)
1.45      perry      62: .endif
1.15      cgd        63:
1.43      thorpej    64: build: beforeinstall
1.68      lukem      65: .if !defined(NOSHARE)
1.32      cgd        66:        (cd ${.CURDIR}/share/mk && ${MAKE} install)
1.47      thorpej    67:        (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)
1.68      lukem      68: .endif
1.39      christos   69: .if !defined(UPDATE)
1.17      cgd        70:        ${MAKE} cleandir
1.39      christos   71: .endif
1.75      tv         72: .if empty(HAVE_GCC28)
1.71      mycroft    73: .if defined(DESTDIR)
                     74:        @echo "*** CAPUTE!"
                     75:        @echo "    You attempted to compile the world with egcs.  You must"
                     76:        @echo "    first install a native egcs compiler."
                     77:        false
                     78: .else
                     79:        (cd ${.CURDIR}/gnu/usr.bin/egcs && \
1.76      bouyer     80:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && \
                     81:            ${MAKE} NOMAN= install && ${MAKE} cleandir)
1.71      mycroft    82: .endif
                     83: .endif
1.51      tv         84:        ${MAKE} includes
1.61      mycroft    85:        (cd ${.CURDIR}/lib/csu && \
1.76      bouyer     86:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.61      mycroft    87:        (cd ${.CURDIR}/lib && \
1.76      bouyer     88:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.61      mycroft    89:        (cd ${.CURDIR}/gnu/lib && \
1.76      bouyer     90:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.32      cgd        91: .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
1.46      thorpej    92: # libtelnet depends on libdes and libkrb.  libkrb depends on
                     93: # libcom_err.
1.49      lukem      94: .if exists(domestic/lib/libdes)
1.46      thorpej    95:        (cd ${.CURDIR}/domestic/lib/libdes && \
1.76      bouyer     96:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.49      lukem      97: .endif
                     98: .if exists(domestic/lib/libcom_err)
1.46      thorpej    99:        (cd ${.CURDIR}/domestic/lib/libcom_err && \
1.76      bouyer    100:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.49      lukem     101: .endif
                    102: .if exists(domestic/lib/libkrb)
1.44      mellon    103:        (cd ${.CURDIR}/domestic/lib/libkrb && \
1.76      bouyer    104:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.49      lukem     105: .endif
1.60      mycroft   106:        (cd ${.CURDIR}/domestic/lib && \
1.76      bouyer    107:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.21      cgd       108: .endif
1.76      bouyer    109:        ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} install
1.50      mellon    110:        @echo -n "Build finished at: "
                    111:        @date
1.1       cgd       112:
                    113: .include <bsd.subdir.mk>

CVSweb <webmaster@jp.NetBSD.org>