=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/Makefile,v retrieving revision 1.63 retrieving revision 1.66 diff -u -r1.63 -r1.66 --- src/Makefile 2001/01/27 00:58:23 1.63 +++ src/Makefile 2001/05/14 12:34:26 1.66 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.63 2001/01/27 00:58:23 niklas Exp $ +# $OpenBSD: Makefile,v 1.66 2001/05/14 12:34:26 espie Exp $ # # For more information on building in tricky environments, please see @@ -53,48 +53,44 @@ regression-tests: @echo Running regression tests... - @(cd ${.CURDIR}/regress && ${MAKE} regress) + @cd ${.CURDIR}/regress && exec ${MAKE} regress .endif includes: - (cd ${.CURDIR}/include; ${MAKE} prereq; ${MAKE} includes) + cd ${.CURDIR}/include && ${MAKE} prereq && exec ${MAKE} includes beforeinstall: -.ifndef DESTDIR - (cd ${.CURDIR}/etc && ${MAKE} DESTDIR= distrib-dirs) -.else - (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) -.endif - (cd ${.CURDIR}/include; ${MAKE} includes) + cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} distrib-dirs + cd ${.CURDIR}/include && exec ${MAKE} includes afterinstall: .ifndef NOMAN - (cd ${.CURDIR}/share/man && ${MAKE} makedb) + cd ${.CURDIR}/share/man && exec ${MAKE} makedb .endif build: .ifdef GLOBAL_AUTOCONF_CACHE cp /dev/null ${GLOBAL_AUTOCONF_CACHE} .endif - (cd ${.CURDIR}/share/mk && ${SUDO} ${MAKE} install) - (cd ${.CURDIR}/include; ${MAKE} prereq; ${SUDO} ${MAKE} includes) + cd ${.CURDIR}/share/mk && exec ${SUDO} ${MAKE} install + cd ${.CURDIR}/include && ${MAKE} prereq && exec ${SUDO} ${MAKE} includes ${SUDO} ${MAKE} cleandir - (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && \ - NOMAN=1 ${SUDO} ${MAKE} install) - (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \ - NOMAN=1 ${SUDO} ${MAKE} install) + cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && \ + NOMAN=1 exec ${SUDO} ${MAKE} install + cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \ + NOMAN=1 exec ${SUDO} ${MAKE} install .if (${KERBEROS:L} == "yes") - (cd ${.CURDIR}/kerberosIV/lib && ${MAKE} depend && ${MAKE} && \ - NOMAN=1 ${SUDO} ${MAKE} install) + cd ${.CURDIR}/kerberosIV/lib && ${MAKE} depend && ${MAKE} && \ + NOMAN=1 exec ${SUDO} ${MAKE} install .endif - (cd ${.CURDIR}/gnu/usr.bin/perl && \ + cd ${.CURDIR}/gnu/usr.bin/perl && \ ${MAKE} -f Makefile.bsd-wrapper depend && \ ${MAKE} -f Makefile.bsd-wrapper perl.lib && \ - ${SUDO} ${MAKE} -f Makefile.bsd-wrapper install.lib) + exec ${SUDO} ${MAKE} -f Makefile.bsd-wrapper install.lib .if (${MACHINE_ARCH} == "mips") ldconfig -R .endif - ${MAKE} depend && ${MAKE} && ${SUDO} ${MAKE} install + ${MAKE} depend && ${MAKE} && exec ${SUDO} ${MAKE} install .if !defined(TARGET) cross-tools: @@ -176,17 +172,16 @@ --prefix ${CROSSDIR}/usr \ --disable-nls --disable-gdbtk --disable-commonbfdlib \ --target `cat ${CROSSDIR}/TARGET_CANON` && \ - ${MAKE} CFLAGS=${CFLAGS} && ${MAKE} install && \ - for cmd in addr2line ar as gasp gdb ld nm objcopy objdump ranlib \ - readelf size strings strip; do \ - ln -sf `cat ${CROSSDIR}/TARGET_CANON`-$$cmd \ - ${CROSSDIR}/usr/bin/$$cmd; done) + ${MAKE} CFLAGS=${CFLAGS} && ${MAKE} install ) && \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 \ ${.CURDIR}/usr.bin/lorder/lorder.sh \ ${CROSSDIR}/usr/bin/lorder cross-binutils-old: cross-gas cross-ar cross-ld cross-strip cross-size \ cross-ranlib cross-nm + for cmd in ar as ld nm ranlib size strip; do \ + ln -sf $$cmd \ + ${CROSSDIR}/usr/bin/`cat ${CROSSDIR}/TARGET_CANON`-$$cmd; done cross-gas: cross-dirs (cd ${.CURDIR}/gnu/usr.bin/gas; \