From 3469f8f4d639a1f1a0e482d31832c4b7be0ee2d2 Mon Sep 17 00:00:00 2001 From: mainzelm Date: Thu, 23 Jan 2003 16:13:36 +0000 Subject: [PATCH] Makefile from scsh. --- doc/latex/Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 doc/latex/Makefile diff --git a/doc/latex/Makefile b/doc/latex/Makefile new file mode 100644 index 0000000..f8f8a46 --- /dev/null +++ b/doc/latex/Makefile @@ -0,0 +1,37 @@ +.SUFFIXES: .idx .ind .tex .dvi .ps .pdf $(.SUFFIXES) + +TEX= cgi-script.tex ftp.tex pdfcond.tex smtp.tex ftpd.tex pop3.tex \ + uri.tex decls.tex httpd.tex netrc.tex rfc822.tex url.tex dns.tex \ + intro.tex nettime.tex skeleton.tex + +TEX2PAGE=tex2page + +man.dvi: $(TEX) man.ind +man.ind: man.idx +man.pdf: $(TEX) man.ind + +.dvi.ps: + dvips -j0 -o $@ $< + +.tex.dvi: + latex $< && latex $< + rm $*.log + +.tex.pdf: + pdflatex $< && thumbpdf $@ && pdflatex $< + rm $*.log + +.idx.ind: + makeindex $< + +clean: + -rm -f *.log *.png man.out man.dvi man.ps man.pdf thumb*.png + rm -rf ../../web-server/root/htdocs/sunet-manual + +INSTALL_DATA= install -c -m 644 + +tar: + tar cf - *.tex sty | gzip > man.tar.gz + +html: $(TEX) + $(TEX2PAGE) man && $(TEX2PAGE) man