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

Annotation of src/Makefile, Revision 1.84

1.84    ! tv          1: #      $NetBSD: Makefile,v 1.83 1999/02/09 19:52:50 christos 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.82      scottr     33: # Descend into the domestic tree if it exists AND
                     34: #  1) the target is clean, cleandir, or obj, OR
                     35: #  2) the the target is install or includes AND NOT
                     36: #    a) compiling only "exportable" code OR
                     37: #    b) doing it as part of build.
                     38:
1.79      scottr     39: .if exists(domestic) && \
                     40:     (make(clean) || make(cleandir) || make(obj) || \
1.82      scottr     41:     ((make(includes) || make(install)) && \
                     42:     !(defined(EXPORTABLE_SYSTEM) || defined(_BUILD))))
1.21      cgd        43: SUBDIR+= domestic
                     44: .endif
                     45:
1.13      brezak     46: .if exists(regress)
1.9       cgd        47: .ifmake !(install)
                     48: SUBDIR+= regress
                     49: .endif
                     50:
1.10      cgd        51: regression-tests:
                     52:        @echo Running regression tests...
1.22      cgd        53:        @(cd ${.CURDIR}/regress && ${MAKE} regress)
1.13      brezak     54: .endif
1.20      cgd        55:
1.26      tls        56: beforeinstall:
1.45      perry      57: .ifmake build
                     58:        @echo -n "Build started at: "
                     59:        @date
                     60: .endif
1.26      tls        61: .ifndef DESTDIR
                     62:        (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
1.31      tls        63: .else
                     64:        (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
1.26      tls        65: .endif
1.15      cgd        66:
                     67: afterinstall:
1.81      scottr     68: .if !defined(NOMAN) && !defined(NOSHARE) && !defined(_BUILD)
                     69:        ${MAKE} whatis.db
                     70: .endif
                     71:
                     72: whatis.db:
1.22      cgd        73:        (cd ${.CURDIR}/share/man && ${MAKE} makedb)
1.15      cgd        74:
1.84    ! tv         75: # wrt info/dir below:  It's safe to move this over top of /usr/share/info/dir,
        !            76: # as the build will automatically remove/replace the non-pkg entries there.
        !            77:
1.43      thorpej    78: build: beforeinstall
1.68      lukem      79: .if !defined(NOSHARE)
1.32      cgd        80:        (cd ${.CURDIR}/share/mk && ${MAKE} install)
1.47      thorpej    81:        (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)
1.84    ! tv         82:        if [ -f ${DESTDIR}/usr/pkg/info/dir ]; then \
        !            83:                ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} \
        !            84:                        ${DESTDIR}/usr/pkg/info/dir ${DESTDIR}/usr/share/info/dir; \
        !            85:                rm -f ${DESTDIR}/usr/pkg/info/dir; \
        !            86:                ln -s /usr/share/info/dir ${DESTDIR}/usr/pkg/info/dir; \
        !            87:        fi
1.68      lukem      88: .endif
1.39      christos   89: .if !defined(UPDATE)
1.17      cgd        90:        ${MAKE} cleandir
1.39      christos   91: .endif
1.75      tv         92: .if empty(HAVE_GCC28)
1.71      mycroft    93: .if defined(DESTDIR)
                     94:        @echo "*** CAPUTE!"
1.84    ! tv         95:        @echo "    You attempted to compile the world without egcs.  You must"
1.71      mycroft    96:        @echo "    first install a native egcs compiler."
1.84    ! tv         97:        @false
1.71      mycroft    98: .else
                     99:        (cd ${.CURDIR}/gnu/usr.bin/egcs && \
1.76      bouyer    100:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && \
                    101:            ${MAKE} NOMAN= install && ${MAKE} cleandir)
1.71      mycroft   102: .endif
                    103: .endif
1.80      scottr    104:        ${MAKE} _BUILD= includes
1.61      mycroft   105:        (cd ${.CURDIR}/lib/csu && \
1.76      bouyer    106:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.61      mycroft   107:        (cd ${.CURDIR}/lib && \
1.76      bouyer    108:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.61      mycroft   109:        (cd ${.CURDIR}/gnu/lib && \
1.76      bouyer    110:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
1.83      christos  111: .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
                    112:        (cd ${.CURDIR}/domestic/lib && \
                    113:            ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install)
                    114: .endif
1.80      scottr    115:        ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} _BUILD= install
1.32      cgd       116: .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
1.78      scottr    117:        (cd ${.CURDIR}/domestic && ${MAKE} ${_J} _SLAVE_BUILD= build)
1.49      lukem     118: .endif
1.81      scottr    119:        ${MAKE} whatis.db
1.50      mellon    120:        @echo -n "Build finished at: "
                    121:        @date
1.1       cgd       122:
                    123: .include <bsd.subdir.mk>

CVSweb <webmaster@jp.NetBSD.org>