1 include ../Makefile.common
7 all: $(MANUAL).pdf $(MANUAL).html $(MANUAL).txt \
8 # $(TSS).pdf $(TSS).html $(TSS).txt \
9 # $(CDB).pdf $(CDB).html $(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)
22 $(MANUAL).html: $(MANUAL).tex $(MANUAL).ind ;#$(MANUAL).glo
24 # fixes latex2html problems with two consecutive dashes for long-options: --stack-auto
25 # fixes latex2html problems with \tabularnewline
26 mv $< `basename $< .tex`.orig.tex
27 sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
28 sed 's,\\tabularnewline$$,\\\\,g' > $<
29 -latex2html -split 5 -show_section_numbers -dir $(MANUAL).html $(MANUAL)
30 mv `basename $< .tex`.orig.tex $<
32 $(TSS).html: $(TSS).tex
34 # fixes latex2html problems with two consecutive dashes for long-options: --stack-auto
35 # fixes latex2html problems with \tabularnewline
36 mv $< `basename $< .tex`.orig.tex
37 sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
38 sed 's,\\tabularnewline$$,\\\\,g' > $<
39 -latex2html -split 0 -dir $(TSS).html $(TSS)
40 mv `basename $< .tex`.orig.tex $<
42 $(CDB).html: $(CDB).tex
44 # fixes latex2html problems with two consecutive dashes for long-options: --stack-auto
45 # fixes latex2html problems with \tabularnewline
46 mv $< `basename $< .tex`.orig.tex
47 sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
48 sed 's,\\tabularnewline$$,\\\\,g' > $<
49 -latex2html -split 0 -show_section_numbers -dir $(CDB).html $(CDB)
50 mv `basename $< .tex`.orig.tex $<
55 %.pdf: %.tex %.dvi %.ind
57 # pdflatex creates documents for acrobat reader >= 5.0
58 # which pdflatex > /dev/null && pdflatex $* || dvipdf $*
72 # -makeindex -s l2hidx.ist $*
77 # the glossary, not implemented yet
78 # makeindex -s l2hglo.ist -o $@ $<