Date: Tue, 4 Dec 2001 18:56:08 -0600 From: Alfred Perlstein <bright@mu.org> To: nik@freebsd.org Cc: doc@freebsd.org Subject: Re: fixups for doc.docbook.mk Message-ID: <20011204185608.D92148@elvis.mu.org> In-Reply-To: <20011204182620.B92148@elvis.mu.org>; from bright@mu.org on Tue, Dec 04, 2001 at 06:26:20PM -0600 References: <20011204182620.B92148@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Alfred Perlstein <bright@mu.org> [011204 18:26] wrote: > Ok, I noticed something, basically a bunch of formats (well, html/pdf) > rebuild the main doc if any of the images change, for html this > is completely unncescesary, and for pdf, only the pdf, not the > pdf-tex most likely needs to be rebuilt. This seems to work, remove the dependancy for ${IMAGES_PDF} for ${DOC}.tex-pdf, and make a phony target for the ${DOC}.html so that we don't rebuild the html if all that's needed is that the pngs be rebuilt. Index: doc.docbook.mk =================================================================== RCS file: /cvs/qcvs/doc/share/mk/doc.docbook.mk,v retrieving revision 1.4 diff -u -r1.4 doc.docbook.mk --- doc.docbook.mk 2001/11/29 01:40:26 1.4 +++ doc.docbook.mk 2001/12/05 00:53:38 @@ -262,7 +262,13 @@ CLEANFILES+= PLIST.${_curformat} .else + +.if ${_cf} == "html" +_docs+= ${DOC}.${_curformat}.phony +.else _docs+= ${DOC}.${_curformat} +.endif + CLEANFILES+= ${DOC}.${_curformat} CLEANFILES+= PLIST.${_curformat} @@ -357,8 +363,10 @@ .if !defined(NO_TIDY) -${TIDY} ${TIDYOPTS} $$(${XARGS} < HTML.manifest) .endif + +${DOC}.html.phony: ${DOC}.html ${IMAGES_PNG} -${DOC}.html: ${SRCS} ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG} \ +${DOC}.html: ${SRCS} ${LOCAL_IMAGES_LIB} \ ${INDEX_SGML} ${HTML_INDEX} ${LOCAL_CSS_SHEET} ${JADE} -V nochunks ${HTMLOPTS} -ioutput.html.images \ ${JADEOPTS} -t sgml ${MASTERDOC} > ${.TARGET} || \ @@ -417,7 +425,7 @@ ${DOC}.tex-ps: ${DOC}.tex ${LN} -f ${.ALLSRC} ${.TARGET} -${DOC}.tex-pdf: ${SRCS} ${IMAGES_PDF} ${INDEX_SGML} ${PRINT_INDEX} +${DOC}.tex-pdf: ${SRCS} ${INDEX_SGML} ${PRINT_INDEX} ${CP} -p ${PDFTEX_DEF} ${.TARGET} ${JADE} -V tex-backend ${PRINTOPTS} -ioutput.print.pdf \ ${JADEOPTS} -t tex -o /dev/stdout ${MASTERDOC} >> ${.TARGET} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204185608.D92148>