[mcclim-cvs] CVS mcclim/Doc

thenriksen thenriksen at common-lisp.net
Thu Dec 21 12:39:54 UTC 2006


Update of /project/mcclim/cvsroot/mcclim/Doc
In directory clnet:/tmp/cvs-serv12667

Modified Files:
	Makefile 
Log Message:
Restored the image-building code.


--- /project/mcclim/cvsroot/mcclim/Doc/Makefile	2006/12/21 12:22:03	1.6
+++ /project/mcclim/cvsroot/mcclim/Doc/Makefile	2006/12/21 12:39:52	1.7
@@ -7,6 +7,10 @@
 PDFFILES=mcclim.pdf
 INFOFILE=mcclim.info
 HTMLDIRS=$(basename $(MCCLIMTEXI))
+IMAGES=ex2.eps inspect-as-cells.eps inspect-object-1.eps \
+inspect-object-2.eps inspect-object-3.eps native.fig
+IMAGETARGETTYPES=gif png eps
+TARGETIMAGES=$(shell sh ./makeimages.sh -e "$(IMAGES)" "$(IMAGETARGETTYPES)")
 # Place where generated documentation ends up. The value of
 # DOCSTRINGDIR has to end with a slash or you lose (it's passed to
 # Lisp's `pathname' function).
@@ -38,9 +42,12 @@
 .PHONY: dist
 dist: html pdf
 
+$(TARGETIMAGES):
+	sh ./makeimages.sh "$(IMAGES)" "$(IMAGETARGETTYPES)"
+
 # html documentation; output in $(HTMLDIRS)
 .PHONY: html
-html: html-stamp
+html: html-stamp $(TARGETIMAGES)
 
 html-stamp: $(DOCFILES) docstrings
 	@rm -rf $(HTMLDIRS)
@@ -49,20 +56,20 @@
 
 # Postscript documentation
 .PHONY: ps
-ps: $(PSFILES)
+ps: $(PSFILES) $(TARGETIMAGES)
 
-%.ps: %.dvi
+%.ps: %.dvi $(TARGETIMAGES)
 	dvips -o $@ $<
 
 # DVI generation
-%.dvi: %.texi $(DOCFILES) docstrings
+%.dvi: %.texi $(DOCFILES) docstrings $(TARGETIMAGES)
 	texi2dvi $(I_FLAGS) $<
 
 # PDF documentation
 .PHONY: pdf
-pdf: $(PDFFILES)
+pdf: $(PDFFILES) $(TARGETIMAGES)
 
-%.pdf: %.texi $(DOCFILES) docstrings
+%.pdf: %.texi $(DOCFILES) docstrings $(TARGETIMAGES)
 	texi2pdf $(I_FLAGS) $<
 
 # info docfiles




More information about the Mcclim-cvs mailing list