Makefile revision 1.76
11.76Sbouyer# $NetBSD: Makefile,v 1.76 1998/12/22 11:21:09 bouyer Exp $ 21.32Scgd 31.32Scgd.include <bsd.own.mk> # for configuration variables. 41.4Scgd 51.76Sbouyer# Configurations variables (can be set either in /etc/mk.conf or 61.76Sbouyer# as environement variable 71.76Sbouyer# NBUILDJOBS: the number of jobs to start in parallel in a 'make build'. 81.76Sbouyer# defaults to 1 91.76Sbouyer# NOMAN: if set to 1, don't build and install man pages 101.76Sbouyer# NOSHARE: if set to 1, don't build or install /usr/share stuffs 111.76Sbouyer# UPDATE: if set to 1, don't do a 'make cleandir' before compile 121.76Sbouyer# DESTDIR: The target directory for installation (default to '/', 131.76Sbouyer# which mean the current system is updated). 141.76Sbouyer 151.58StvHAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo 161.58Stv 171.76Sbouyer.if defined(NBUILDJOBS) 181.76Sbouyer_J= -j${NBUILDJOBS} 191.76Sbouyer.endif 201.76Sbouyer 211.4Scgd# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW 221.2Scgd 231.52SmycroftSUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys 241.36Sexplorer 251.36Sexplorer.if exists(games) 261.36SexplorerSUBDIR+= games 271.36Sexplorer.endif 281.36Sexplorer 291.8ScgdSUBDIR+= gnu 301.52Smycroft# This is needed for libstdc++ and gen-params. 311.52Smycroftincludes-gnu: includes-include includes-sys 321.9Scgd 331.21Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 341.21ScgdSUBDIR+= domestic 351.21Scgd.endif 361.21Scgd 371.13Sbrezak.if exists(regress) 381.9Scgd.ifmake !(install) 391.9ScgdSUBDIR+= regress 401.9Scgd.endif 411.9Scgd 421.10Scgdregression-tests: 431.10Scgd @echo Running regression tests... 441.22Scgd @(cd ${.CURDIR}/regress && ${MAKE} regress) 451.13Sbrezak.endif 461.20Scgd 471.26Stlsbeforeinstall: 481.45Sperry.ifmake build 491.45Sperry @echo -n "Build started at: " 501.45Sperry @date 511.45Sperry.endif 521.26Stls.ifndef DESTDIR 531.26Stls (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 541.31Stls.else 551.31Stls (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 561.26Stls.endif 571.15Scgd 581.15Scgdafterinstall: 591.68Slukem.if !defined(NOMAN) && !defined(NOSHARE) 601.22Scgd (cd ${.CURDIR}/share/man && ${MAKE} makedb) 611.45Sperry.endif 621.15Scgd 631.43Sthorpejbuild: beforeinstall 641.68Slukem.if !defined(NOSHARE) 651.32Scgd (cd ${.CURDIR}/share/mk && ${MAKE} install) 661.47Sthorpej (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) 671.68Slukem.endif 681.39Schristos.if !defined(UPDATE) 691.17Scgd ${MAKE} cleandir 701.39Schristos.endif 711.75Stv.if empty(HAVE_GCC28) 721.71Smycroft.if defined(DESTDIR) 731.71Smycroft @echo "*** CAPUTE!" 741.71Smycroft @echo " You attempted to compile the world with egcs. You must" 751.71Smycroft @echo " first install a native egcs compiler." 761.71Smycroft false 771.71Smycroft.else 781.71Smycroft (cd ${.CURDIR}/gnu/usr.bin/egcs && \ 791.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} NOMAN= && \ 801.76Sbouyer ${MAKE} NOMAN= install && ${MAKE} cleandir) 811.71Smycroft.endif 821.71Smycroft.endif 831.51Stv ${MAKE} includes 841.61Smycroft (cd ${.CURDIR}/lib/csu && \ 851.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) 861.61Smycroft (cd ${.CURDIR}/lib && \ 871.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) 881.61Smycroft (cd ${.CURDIR}/gnu/lib && \ 891.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) 901.32Scgd.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 911.46Sthorpej# libtelnet depends on libdes and libkrb. libkrb depends on 921.46Sthorpej# libcom_err. 931.49Slukem.if exists(domestic/lib/libdes) 941.46Sthorpej (cd ${.CURDIR}/domestic/lib/libdes && \ 951.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) 961.49Slukem.endif 971.49Slukem.if exists(domestic/lib/libcom_err) 981.46Sthorpej (cd ${.CURDIR}/domestic/lib/libcom_err && \ 991.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) 1001.49Slukem.endif 1011.49Slukem.if exists(domestic/lib/libkrb) 1021.44Smellon (cd ${.CURDIR}/domestic/lib/libkrb && \ 1031.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) 1041.49Slukem.endif 1051.60Smycroft (cd ${.CURDIR}/domestic/lib && \ 1061.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) 1071.21Scgd.endif 1081.76Sbouyer ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} install 1091.50Smellon @echo -n "Build finished at: " 1101.50Smellon @date 1111.1Scgd 1121.1Scgd.include <bsd.subdir.mk> 113