[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src

Diff for /src/Makefile between version 1.7 and 1.121

version 1.7, 1996/05/06 20:31:44 version 1.121, 2014/04/22 10:21:56
Line 1 
Line 1 
 #       $OpenBSD$  #       $OpenBSD$
 #       $NetBSD: Makefile,v 1.25 1995/10/09 02:11:28 thorpej Exp $  
   
   #
   # For more information on building in tricky environments, please see
   # the list of possible environment variables described in
   # /usr/share/mk/bsd.README.
   #
   # Building recommendations:
   #
   # 1) If at all possible, put this source tree in /usr/src.  If /usr/src
   # must be a symbolic link, set BSDSRCDIR in the environment to point to
   # the real location.
   #
   # 2) It is also recommended that you compile with objects outside the
   # source tree. To do this, ensure /usr/obj exists or points to some
   # area of disk of sufficient size.  Then do "cd /usr/src; make obj".
   # This will make a symbolic link called "obj" in each directory, as
   # well as populate the /usr/obj properly with directories for the
   # objects.
   #
   # 3) It is strongly recommended that you build and install a new kernel
   # before rebuilding your system. Some of the new programs may use new
   # functionality or depend on API changes that your old kernel doesn't have.
   #
   # 4) If you are reasonably sure that things will compile OK, use the
   # "make build" target supplied here. Good luck.
   #
   # 5) If you want to setup a cross-build environment, there is a "cross-gcc"
   # target available which upon completion of:
   #       make -f Makefile.cross TARGET=<target> cross-gcc"
   # (where <target> is one of the names in the /sys/arch directory) will produce
   # a set of compilation tools along with the includes in the /usr/cross/<target>
   # directory. The "cross-distrib" target will build cross-tools as well as
   # binaries for a given <target>.
   #
   
 .include <bsd.own.mk>   # for NOMAN, if it's there.  .include <bsd.own.mk>   # for NOMAN, if it's there.
   
 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW  
   
 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games  SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games
 SUBDIR+= gnu  SUBDIR+= gnu
   
 SUBDIR+= sys lkm  SUBDIR+= sys
   
 .if defined(KERBEROS)  .if   make(clean) || make(cleandir) || make(obj)
 SUBDIR+= kerberosIV  SUBDIR+= distrib regress
 .endif  .endif
   
 .if exists(regress)  
 .ifmake !(install)  
 SUBDIR+= regress  
 .endif  
   
 regression-tests:  regression-tests:
         @echo Running regression tests...          @echo Running regression tests...
         @(cd ${.CURDIR}/regress && ${MAKE} regress)          @cd ${.CURDIR}/regress && ${MAKE} depend && exec ${MAKE} regress
 .endif  
   
   includes:
           cd ${.CURDIR}/include && ${MAKE} prereq && exec ${SUDO} ${MAKE} includes
   
 beforeinstall:  beforeinstall:
 .ifndef DESTDIR          cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} distrib-dirs
         (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)          cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} install-mtree
 .else          cd ${.CURDIR}/include && exec ${MAKE} includes
         (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)  
 .endif  
   
 afterinstall:  afterinstall:
 .ifndef NOMAN  .ifndef NOMAN
         (cd ${.CURDIR}/share/man && ${MAKE} makedb)          cd ${.CURDIR}/share/man && exec ${MAKE} makedb
 .endif  .endif
   
   .ifdef DESTDIR
 build:  build:
         (cd ${.CURDIR}/share/mk && ${MAKE} install)          @echo cannot build with DESTDIR set
         ${MAKE} includes          @false
 .if defined(KERBEROS)  .else
         (cd ${.CURDIR}/kerberosIV/include && ${MAKE} install)  build:
   .ifdef GLOBAL_AUTOCONF_CACHE
           cp /dev/null ${GLOBAL_AUTOCONF_CACHE}
 .endif  .endif
         ${MAKE} cleandir          cd ${.CURDIR}/share/mk && exec ${SUDO} ${MAKE} install
         (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)          cd ${.CURDIR}/include && ${MAKE} prereq && exec ${SUDO} ${MAKE} includes
         (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)          ${SUDO} ${MAKE} cleandir
 .if defined(KERBEROS)          cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && \
         (cd ${.CURDIR}/kerberosIV && ${MAKE} build)              NOMAN=1 exec ${SUDO} ${MAKE} install
           cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \
               NOMAN=1 exec ${SUDO} ${MAKE} install
           ${MAKE} depend && ${MAKE} && exec ${SUDO} ${MAKE} install
 .endif  .endif
         ${MAKE} depend && ${MAKE} && ${MAKE} install  
   CROSS_TARGETS=cross-env cross-dirs cross-obj cross-includes cross-binutils \
           cross-gcc cross-tools cross-lib cross-bin cross-etc-root-var \
           cross-depend cross-clean cross-cleandir
   
   .if !defined(TARGET)
   ${CROSS_TARGETS}:
           @echo "TARGET must be set for $@"; exit 1
   .else
   . include "Makefile.cross"
   .endif # defined(TARGET)
   
   .PHONY: ${CROSS_TARGETS} \
           build regression-tests includes beforeinstall afterinstall \
           all depend
   
 .include <bsd.subdir.mk>  .include <bsd.subdir.mk>

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.121