1 include ../Makefile.common
7 all: $(MANUAL).html $(MANUAL).pdf $(MANUAL).txt \
8 $(TSS).html $(TSS).pdf $(TSS).txt \
9 $(CDB).html $(CDB).pdf $(CDB).txt
12 $(INSTALL) -d $(docdir)
13 cp -rf *.txt z80 avr $(docdir)
14 $(shell if [ -f $(MANUAL).html ]; then cp -rf $(MANUAL).html $(docdir); fi)
15 $(shell if [ -f $(TSS).html ]; then cp -rf $(TSS).html $(docdir); fi)
16 $(shell if [ -f $(CDB).html ]; then cp -rf $(CDB).html $(docdir); fi)
17 $(shell if [ -f *.pdf ]; then cp -rf *.pdf $(docdir); fi)
23 $(MANUAL).html: $(MANUAL).tex $(MANUAL).ind ;#$(MANUAL).glo
25 # fixes latex2html problems with two consecutive dashes for long-options: --stack-auto
26 # fixes latex2html problems with \tabularnewline
27 mv $< `basename $< .tex`.orig.tex
28 sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
29 sed 's,\\tabularnewline$$,\\\\,g' > $<
30 -latex2html -split 5 -show_section_numbers -dir $(MANUAL).html $(MANUAL)
31 mv `basename $< .tex`.orig.tex $<
33 $(TSS).html: $(TSS).tex
35 # fixes latex2html problems with two consecutive dashes for long-options: --stack-auto
36 # fixes latex2html problems with \tabularnewline
37 mv $< `basename $< .tex`.orig.tex
38 sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
39 sed 's,\\tabularnewline$$,\\\\,g' > $<
40 -latex2html -split 0 -dir $(TSS).html $(TSS)
41 mv `basename $< .tex`.orig.tex $<
43 $(CDB).html: $(CDB).tex
45 # fixes latex2html problems with two consecutive dashes for long-options: --stack-auto
46 # fixes latex2html problems with \tabularnewline
47 mv $< `basename $< .tex`.orig.tex
48 sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
49 sed 's,\\tabularnewline$$,\\\\,g' > $<
50 -latex2html -split 0 -show_section_numbers -dir $(CDB).html $(CDB)
51 mv `basename $< .tex`.orig.tex $<
57 which pdflatex > /dev/null && pdflatex $* || dvipdf $*
66 makeindex -s l2hidx.ist $*
69 # the glossary, not implemented yet
70 # makeindex -s l2hglo.ist -o $@ $<