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

Diff for /src/Makefile between version 1.123 and 1.133

version 1.123, 2014/08/26 20:19:25 version 1.133, 2017/04/14 21:37:15
Line 27 
Line 27 
 #  #
 # 5) If you want to setup a cross-build environment, there is a "cross-gcc"  # 5) If you want to setup a cross-build environment, there is a "cross-gcc"
 # target available which upon completion of:  # target available which upon completion of:
 #       make -f Makefile.cross TARGET=<target> cross-gcc"  #       "make -f Makefile.cross TARGET=<target> cross-gcc"
 # (where <target> is one of the names in the /sys/arch directory) will produce  # (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>  # 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  # directory. The "cross-distrib" target will build cross-tools as well as
Line 42 
Line 42 
 SUBDIR+= sys  SUBDIR+= sys
   
 .if   make(clean) || make(cleandir) || make(obj)  .if   make(clean) || make(cleandir) || make(obj)
 SUBDIR+= distrib regress  SUBDIR+= etc distrib regress
 .endif  .endif
   
 regression-tests:  regression-tests:
Line 50 
Line 50 
         @cd ${.CURDIR}/regress && ${MAKE} depend && exec ${MAKE} regress          @cd ${.CURDIR}/regress && ${MAKE} depend && exec ${MAKE} regress
   
 includes:  includes:
         cd ${.CURDIR}/include && ${MAKE} prereq && exec ${SUDO} ${MAKE} includes          cd ${.CURDIR}/include && \
                   su ${BUILDUSER} -c 'exec ${MAKE} prereq' && \
                   exec ${MAKE} includes
   
 beforeinstall:  beforeinstall:
         cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} distrib-dirs          cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} distrib-dirs
Line 69 
Line 71 
         @false          @false
 .else  .else
 build:  build:
           umask ${WOBJUMASK}; exec ${MAKE} do-build
   
   do-build:
 .ifdef GLOBAL_AUTOCONF_CACHE  .ifdef GLOBAL_AUTOCONF_CACHE
         cp /dev/null ${GLOBAL_AUTOCONF_CACHE}          ${INSTALL} -c -o ${BUILDUSER} -g ${WOBJGROUP} -m 664 /dev/null \
               ${GLOBAL_AUTOCONF_CACHE}
 .endif  .endif
         cd ${.CURDIR}/share/mk && exec ${SUDO} ${MAKE} install          @if [[ `id -u` -ne 0 ]]; then \
         cd ${.CURDIR}/include && ${MAKE} prereq && exec ${SUDO} ${MAKE} includes                  echo $@ must be called by root >&2; \
         ${SUDO} ${MAKE} cleandir                  false; \
         cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && \          fi
             NOMAN=1 exec ${SUDO} ${MAKE} install          cd ${.CURDIR}/share/mk && exec ${MAKE} install
         cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \          exec ${MAKE} cleandir
             NOMAN=1 exec ${SUDO} ${MAKE} install          exec ${MAKE} includes
         ${MAKE} depend && ${MAKE} && exec ${SUDO} ${MAKE} install          cd ${.CURDIR}/lib && \
         ${SUDO} /bin/sh ${.CURDIR}/distrib/sets/makeetcset ${.CURDIR} ${MAKE}              su ${BUILDUSER} -c '${MAKE} depend && exec ${MAKE}' && \
               NOMAN=1 exec ${MAKE} install
           cd ${.CURDIR}/gnu/lib && \
               su ${BUILDUSER} -c '${MAKE} depend && exec ${MAKE}' && \
               NOMAN=1 exec ${MAKE} install
           su ${BUILDUSER} -c '${MAKE} depend && exec ${MAKE}' && \
               exec ${MAKE} install
           /bin/sh ${.CURDIR}/distrib/sets/makeetcset ${.CURDIR} ${MAKE}
 .endif  .endif
   
 CROSS_TARGETS=cross-env cross-dirs cross-obj cross-includes cross-binutils \  CROSS_TARGETS=cross-env cross-dirs cross-obj cross-includes cross-binutils \
Line 96 
Line 109 
   
 .PHONY: ${CROSS_TARGETS} \  .PHONY: ${CROSS_TARGETS} \
         build regression-tests includes beforeinstall afterinstall \          build regression-tests includes beforeinstall afterinstall \
         all depend          all depend do-build
   
 .include <bsd.subdir.mk>  .include <bsd.subdir.mk>

Legend:
Removed from v.1.123  
changed lines
  Added in v.1.133