Date: Mon, 04 Feb 2002 10:29:28 -0800 From: bmah@freebsd.org (Bruce A. Mah) To: murray@freebsd.org Cc: bmah@freebsd.org, freebsd-doc@freebsd.org Subject: PDF generation wart, patch for same Message-ID: <200202041829.g14ITSE62544@nimitz.packetdesign.com>
next in thread | raw e-mail | index | archive | help
The latest change to doc.images.mk broke PDF generation for the releng article because the PDF images aren't listed as dependencies for the *.tex-pdf file. Consequently, texpdf complains because it can't find the images. I think the following patch fixes this, and also fixes a problem where "make FORMATS=pdf clean" wouldn't get rid of a *.ps intermediate file. This is an extremely ugly hack, and I'm almost ashamed to have my name on it. Whatcha think? Bruce. PS. Editorial comment to whomever is reading: IMAGES_GEN_* are now misleading, now that image files can come from multiple source formats. Index: doc.images.mk =================================================================== RCS file: /home/ncvs/doc/share/mk/doc.images.mk,v retrieving revision 1.15 diff -u -r1.15 doc.images.mk --- doc.images.mk 2 Feb 2002 20:30:55 -0000 1.15 +++ doc.images.mk 4 Feb 2002 18:23:13 -0000 @@ -57,12 +57,15 @@ IMAGES_GEN_PDF= ${_IMAGES_EPS:S/.eps$/.pdf/} IMAGES_SCR_PNG= ${_IMAGES_SCR:S/.scr$/.png/} IMAGES_SCR_EPS= ${_IMAGES_SCR:S/.scr$/.eps/} +IMAGES_SCR_PDF= ${_IMAGES_SCR:S/.scr$/.pdf/} IMAGES_PIC_PNG= ${_IMAGES_PIC:S/.pic$/.png/} IMAGES_PIC_EPS= ${_IMAGES_PIC:S/.pic$/.eps/} +IMAGES_PIC_PDF= ${_IMAGES_PIC:S/.pic$/.pdf/} +IMAGES_GEN_PDF+= ${IMAGES_PIC_PDF} ${IMAGES_SCR_PDF} CLEANFILES+= ${IMAGES_GEN_PNG} ${IMAGES_GEN_EPS} ${IMAGES_GEN_PDF} CLEANFILES+= ${IMAGES_SCR_PNG} ${IMAGES_SCR_EPS} -CLEANFILES+= ${IMAGES_PIC_PNG} ${IMAGES_PIC_EPS} +CLEANFILES+= ${IMAGES_PIC_PNG} ${IMAGES_PIC_EPS} ${_IMAGES_PIC:S/.pic$/.ps/} IMAGES_PNG= ${_IMAGES_PNG} ${IMAGES_GEN_PNG} ${IMAGES_SCR_PNG} ${IMAGES_PIC_PNG} IMAGES_EPS= ${_IMAGES_EPS} ${IMAGES_GEN_EPS} ${IMAGES_SCR_EPS} ${IMAGES_PIC_EPS} 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?200202041829.g14ITSE62544>