diff options
author | jfieber <jfieber@FreeBSD.org> | 1996-10-01 23:44:03 +0000 |
---|---|---|
committer | jfieber <jfieber@FreeBSD.org> | 1996-10-01 23:44:03 +0000 |
commit | df2ef18d477c6685355c716393b308caf65f127d (patch) | |
tree | 799bafc57e5256a2e0b37fee62ae8c9bb931cae7 /share/mk | |
parent | 857683bede167a90c50f717afb1fe5bf7dfd8684 (diff) | |
download | FreeBSD-src-df2ef18d477c6685355c716393b308caf65f127d.zip FreeBSD-src-df2ef18d477c6685355c716393b308caf65f127d.tar.gz |
1) If as link file was created by sgmlfmt, use it during installation.
2) The assignment of CLEANFILES in a .for loop was badly botched. Now fixed.
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.sgml.mk | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/share/mk/bsd.sgml.mk b/share/mk/bsd.sgml.mk index 21f9f36..63fe905 100644 --- a/share/mk/bsd.sgml.mk +++ b/share/mk/bsd.sgml.mk @@ -1,7 +1,7 @@ # bsd.sgml.mk - 8 Sep 1995 John Fieber # This file is in the public domain. # -# $Id: bsd.sgml.mk,v 1.8 1996/08/23 22:33:33 jkh Exp $ +# $Id: bsd.sgml.mk,v 1.9 1996/09/29 18:21:16 jfieber Exp $ # # The include file <bsd.sgml.mk> handles installing sgml documents. # <bsd.prog.mk> includes the file named "../Makefile.inc" if it exists, @@ -66,6 +66,7 @@ SGMLFMT?= sgmlfmt LPR?= lpr DOCS= ${FORMATS:S/^/${DOC}./g} +CLEANFILES+= ${DOCS} .MAIN: all all: ${DOCS} @@ -120,7 +121,11 @@ print-${_FORMAT}: ${DOC}.${_FORMAT} .if ${_FORMAT} == "html" install-${_FORMAT}: ${INSTALL} ${COPY} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \ - *.${.TARGET:S/install-//} ${DESTDIR}${DOCDIR}/${VOLUME} + ${DOC}*.html ${DESTDIR}${DOCDIR}/${VOLUME} + if [ -f ${.OBJDIR}/${DOC}.ln ]; then \ + (cd ${DESTDIR}${DOCDIR}/${VOLUME}; \ + sh ${.OBJDIR}/${DOC}.ln); \ + fi .else install-${_FORMAT}: @@ -137,9 +142,7 @@ ${DOC}.${_FORMAT}: ${SRCS} .endif .if ${_FORMAT} == "html" -CLEANFILES+= *.html ${DOC}.nl -.else -CLEANFILES+= ${DOC}.${_FORMAT} +CLEANFILES+= ${DOC}*.html ${DOC}.ln .endif .endfor |