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/share/mk/bsd.lib.mk,v rcsdiff: /ftp/cvs/cvsroot/src/share/mk/bsd.lib.mk,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.6 retrieving revision 1.12 diff -u -p -r1.6 -r1.12 --- src/share/mk/bsd.lib.mk 1993/04/08 14:10:30 1.6 +++ src/share/mk/bsd.lib.mk 1993/05/26 11:48:40 1.12 @@ -47,7 +47,9 @@ BINMODE?= 555 @${LD} -X -r ${.TARGET} @mv a.out ${.TARGET} +.if !defined(NOMAN) MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8} +.endif .if !defined(NOPROFILE) _LIBS=lib${LIB}.a lib${LIB}_p.a @@ -77,21 +79,25 @@ llib-l${LIB}.ln: ${SRCS} .if !target(clean) clean: - rm -f a.out Errs errs mklog core ${CLEANFILES} ${OBJS} ${POBJS} \ - profiled/*.o lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln + rm -f a.out Errs errs mklog core ${CLEANFILES} + rm -f ${OBJS} + rm -f ${POBJS} profiled/*.o + rm -f lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln .endif .if !target(cleandir) cleandir: - rm -f a.out Errs errs mklog core ${CLEANFILES} ${OBJS} ${POBJS} \ - profiled/*.o lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln + rm -f a.out Errs errs mklog core ${CLEANFILES} + rm -f ${OBJS} + rm -f ${POBJS} profiled/*.o + rm -f lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln rm -f ${MANALL} ${.CURDIR}/tags .depend .endif .if !target(depend) depend: .depend .depend: ${SRCS} - mkdep ${CFLAGS:M-[ID]*} ${AINC} ${.ALLSRC} + mkdep ${CFLAGS:M-[ID+]*} ${AINC} ${.ALLSRC} @(TMP=/tmp/_depend$$$$; \ sed -e 's/^\([^\.]*\).o:/\1.o \1.po:/' < .depend > $$TMP; \ mv $$TMP .depend) @@ -100,7 +106,7 @@ depend: .depend .if !target(install) .if !target(beforeinstall) beforeinstall: - @if [ ! -d ${DESTDIR}${LIBDIR} ]; then \ + @if [ ! -d "${DESTDIR}${LIBDIR}" ]; then \ /bin/rm -f ${DESTDIR}${LIBDIR} ; \ mkdir -p ${DESTDIR}${LIBDIR} ; \ chown root.wheel ${DESTDIR}${LIBDIR} ; \ @@ -110,16 +116,18 @@ beforeinstall: fi .endif -realinstall: beforeinstall +realinstall: ranlib lib${LIB}.a - install -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} lib${LIB}.a \ + install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} lib${LIB}.a \ ${DESTDIR}${LIBDIR} ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}.a +.if !defined(NOPROFILE) ranlib lib${LIB}_p.a - install -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ lib${LIB}_p.a ${DESTDIR}${LIBDIR} ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}_p.a -# install -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ +.endif +# install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ # llib-l${LIB}.ln ${DESTDIR}${LINTLIBDIR} .if defined(LINKS) && !empty(LINKS) @set ${LINKS}; \ @@ -134,8 +142,10 @@ realinstall: beforeinstall done; true .endif -install: afterinstall -afterinstall: realinstall maninstall +install: maninstall +maninstall: afterinstall +afterinstall: realinstall +realinstall: beforeinstall .endif .if !target(lint) @@ -148,7 +158,10 @@ tags: ${SRCS} sed "s;\${.CURDIR}/;;" > tags .endif +.if !defined(NOMAN) .include +.endif + .if !target(obj) .if defined(NOOBJ) obj: