1 2# stuff for LaTeX 2e itself 3# 4LATEX = /usr/local/bin/latex 5 6# PDF macros 7# 8PDFLATEX = /usr/local/bin/pdflatex 9 10# PostScript macros 11# 12DVIPS = /usr/local/bin/dvips 13 14# TEXT macros 15# 16W3M = /usr/local/bin/w3m 17 18# HTML macros 19# 20LATEX2HTML = /usr/local/bin/latex2html 21# directories to contain HTML output 22HTMLSPLITDIR = html-split 23HTMLSINGLEDIR = html-single 24# arguments for latex2html to generate a split document 25HTMLSPLIT = -dir ${HTMLSPLITDIR} -mkdir -local_icons -white -noaddress -noinfo 26# arguments for latex2html to generate a single document 27HTMLSINGLE = -dir ${HTMLSINGLEDIR} -mkdir -white -noaddress -noinfo -split 0 28 29# Which make to use? make or gmake? 30MAKE = make 31 32all: txt html ps pdf dvi 33 34txt: ecartis.txt 35 36html: ecartis.html 37 38ps: ecartis.ps 39 40pdf: ecartis.pdf 41 42dvi: ecartis.dvi 43 44ecartis.pdf: ecartis.dvi 45 ${MAKE} clean_pdf 46 # must run twice to get TOC 47 ${PDFLATEX} ecartis 48 ${PDFLATEX} ecartis 49 50ecartis.ps: ecartis.dvi 51 ${DVIPS} -o ecartis.ps ecartis 52 53ecartis.txt: ${HTMLSINGLEDIR}/ecartis.html 54 ${W3M} -dump ${HTMLSINGLEDIR}/ecartis.html > ecartis.txt 55 56ecartis.html: ${HTMLSINGLEDIR}/ecartis.html 57 58${HTMLSINGLEDIR}/ecartis.html: ecartis.dvi 59 ${MAKE} distclean_html 60 ${LATEX2HTML} ${HTMLSPLIT} ecartis 61 ${LATEX2HTML} ${HTMLSINGLE} ecartis 62 63ecartis: ecartis.dvi 64 65ecartis.dvi: ecartis.sty ecartis.tex 66 # must run twice to get TOC 67 ${LATEX} ecartis 68 ${LATEX} ecartis 69 70distclean: clean distclean_dvi distclean_pdf distclean_ps distclean_txt \ 71 distclean_html 72 73clean: clean_dvi clean_pdf 74 75distclean_dvi: clean_dvi 76 rm -Rf ecartis.dvi 77 78clean_dvi: 79 rm -Rf ecartis.aux ecartis.log ecartis.toc 80 81distclean_pdf: 82 rm -Rf ecartis.pdf 83 84clean_pdf: 85 rm -Rf ecartis.aux ecartis.log ecartis.out ecartis.toc 86 87distclean_ps: 88 rm -Rf ecartis.ps 89 90distclean_txt: 91 rm -Rf ecartis.txt 92 93distclean_html: 94 rm -Rf ${HTMLSPLITDIR} ${HTMLSINGLEDIR} 95