Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/Makefile,v rcsdiff: /ftp/cvs/cvsroot/src/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.6 retrieving revision 1.38 diff -u -p -r1.6 -r1.38 --- src/Makefile 1993/04/10 15:49:55 1.6 +++ src/Makefile 1997/03/10 23:46:12 1.38 @@ -1,8 +1,56 @@ -# $Header: /ftp/cvs/cvsroot/src/Makefile,v 1.6 1993/04/10 15:49:55 cgd Exp $ +# $NetBSD: Makefile,v 1.38 1997/03/10 23:46:12 cgd Exp $ + +.include # for configuration variables. # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW -SUBDIR= bin include lib libexec sbin usr.bin usr.sbin share games \ - gnulib usr.gnubin +SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share + +.if exists(games) +SUBDIR+= games +.endif + +SUBDIR+= gnu + +SUBDIR+= sys + +.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) +SUBDIR+= domestic +.endif + +.if exists(regress) +.ifmake !(install) +SUBDIR+= regress +.endif + +regression-tests: + @echo Running regression tests... + @(cd ${.CURDIR}/regress && ${MAKE} regress) +.endif + +beforeinstall: +.ifndef DESTDIR + (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) +.else + (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) +.endif + +afterinstall: +.ifndef NOMAN + (cd ${.CURDIR}/share/man && ${MAKE} makedb) +.endif + +build: + (cd ${.CURDIR}/share/mk && ${MAKE} install) + ${MAKE} includes + ${MAKE} cleandir + (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install) + (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) + (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) +.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) + (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \ + ${MAKE} install) +.endif + ${MAKE} depend && ${MAKE} && ${MAKE} install .include