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.84 retrieving revision 1.89 diff -u -p -r1.84 -r1.89 --- src/Makefile 1999/02/11 14:49:49 1.84 +++ src/Makefile 1999/02/18 03:19:44 1.89 @@ -1,16 +1,16 @@ -# $NetBSD: Makefile,v 1.84 1999/02/11 14:49:49 tv Exp $ +# $NetBSD: Makefile,v 1.89 1999/02/18 03:19:44 mellon Exp $ .include # for configuration variables. # Configurations variables (can be set either in /etc/mk.conf or # as environement variable -# NBUILDJOBS: the number of jobs to start in parallel in a 'make build'. -# defaults to 1 -# NOMAN: if set to 1, don't build and install man pages -# NOSHARE: if set to 1, don't build or install /usr/share stuffs -# UPDATE: if set to 1, don't do a 'make cleandir' before compile -# DESTDIR: The target directory for installation (default to '/', -# which mean the current system is updated). +# NBUILDJOBS: the number of jobs to start in parallel in a 'make build'. +# defaults to 1 +# MKMAN: if set to no, don't build and install man pages +# MKSHARE: if set to no, don't build or install /usr/share stuffs +# UPDATE: if set to 1, don't do a 'make cleandir' before compile +# DESTDIR: The target directory for installation (default to '/', +# which mean the current system is updated). HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo @@ -65,7 +65,7 @@ beforeinstall: .endif afterinstall: -.if !defined(NOMAN) && !defined(NOSHARE) && !defined(_BUILD) +.if ${MKMAN} != "no" && !defined(_BUILD) ${MAKE} whatis.db .endif @@ -76,15 +76,9 @@ whatis.db: # as the build will automatically remove/replace the non-pkg entries there. build: beforeinstall -.if !defined(NOSHARE) +.if ${MKSHARE} != "no" (cd ${.CURDIR}/share/mk && ${MAKE} install) (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) - if [ -f ${DESTDIR}/usr/pkg/info/dir ]; then \ - ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} \ - ${DESTDIR}/usr/pkg/info/dir ${DESTDIR}/usr/share/info/dir; \ - rm -f ${DESTDIR}/usr/pkg/info/dir; \ - ln -s /usr/share/info/dir ${DESTDIR}/usr/pkg/info/dir; \ - fi .endif .if !defined(UPDATE) ${MAKE} cleandir @@ -97,21 +91,20 @@ build: beforeinstall @false .else (cd ${.CURDIR}/gnu/usr.bin/egcs && \ - ${MAKE} depend && ${MAKE} ${_J} NOMAN= && \ - ${MAKE} NOMAN= install && ${MAKE} cleandir) + ${MAKE} depend && ${MAKE} ${_J} MKMAN=no && \ + ${MAKE} MKMAN=no install && ${MAKE} cleandir) .endif .endif ${MAKE} _BUILD= includes (cd ${.CURDIR}/lib/csu && \ - ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) + ${MAKE} depend && ${MAKE} ${_J} MKMAN=no && \ + ${MAKE} MKMAN=no install) (cd ${.CURDIR}/lib && \ - ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) + ${MAKE} depend && ${MAKE} ${_J} MKMAN=no && \ + ${MAKE} MKMAN=no install) (cd ${.CURDIR}/gnu/lib && \ - ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) -.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) - (cd ${.CURDIR}/domestic/lib && \ - ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) -.endif + ${MAKE} depend && ${MAKE} ${_J} MKMAN=no MKINFO=no && \ + ${MAKE} MKMAN=no MKINFO=no install) ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} _BUILD= install .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) (cd ${.CURDIR}/domestic && ${MAKE} ${_J} _SLAVE_BUILD= build) @@ -120,4 +113,7 @@ build: beforeinstall @echo -n "Build finished at: " @date +release snapshot: build + (cd ${.CURDIR}/etc && make INSTALL_DONE=1 release) + .include