graphics: bug 9270 fixed - The contour function was broken.
[scilab.git] / scilab_doc / lmitool / Makefile
1 SHELL = /bin/sh
2
3 include ../../Version.incl
4 SCIDIR=../..
5 SCIDOC=$(SCIDIR)/../$(SCIVERSION)/doc
6 include ../../Makefile.incl
7
8 TEXFILES = lmidoc.tex
9
10 all:: $(SCIDOC)/Lmi.ps
11
12 $(SCIDOC)/Lmi.ps: $(TEXFILES)
13         latex lmidoc
14         latex lmidoc
15         $(RM) $@
16         dvips -o $(SCIDOC)/Lmi.ps lmidoc.dvi
17
18 clean::
19         $(RM) *.aux *.log  *.dvi *.ind *.idx *.ilg *.lof *.lot *.toc \
20         lmidoc_pdf.* *.tmp Lmi_pdf.ps
21 distclean::
22         $(RM) *.aux *.log  *.dvi *.ind *.idx *.ilg *.lof *.lot *.toc \
23         lmidoc_pdf.* *.tmp Lmi_pdf.ps
24
25 pdf: $(TEXFILES)
26         awk '{if ($$1~"documentclass") \
27         {printf "%s\n\\usepackage[dvips,colorlinks=true]{hyperref}\\usepackage{times}\n",$$1} else {print $$0} }' \
28         lmidoc.tex > lmidoc_pdf.tex
29         latex lmidoc_pdf
30         latex lmidoc_pdf
31         dvips -z -o Lmi_pdf.ps lmidoc_pdf.dvi