Reshaped doc's
[fw/sdcc] / doc / Makefile
1 include ../Makefile.common
2
3 MANUAL = sdccman
4 TSS = test_suite_spec
5
6 all: $(MANUAL).html $(MANUAL).pdf $(MANUAL).txt \
7         $(TSS).html $(TSS).pdf $(TSS).txt
8
9 install:
10         $(INSTALL) -d $(docdir)
11         cp -rf *.html *.txt *.pdf $(MANUAL).html $(TSS).html z80 avr $(docdir)
12
13 uninstall:
14         rm -rf $(docdir)
15
16
17 $(MANUAL).html: $(MANUAL).tex $(MANUAL).ind ;#$(MANUAL).glo
18         latex2html -split 5 -show_section_numbers -dir $(MANUAL).html $(MANUAL)
19
20 $(TSS).html: $(TSS).tex
21         latex2html -split 0 -dir $(TSS).html $(TSS)
22
23 %.txt: %.lyx
24         lyx -e text $<
25
26 %.pdf: %.dvi
27         pdflatex $*
28
29 %.dvi: %.tex
30         latex $<
31
32 %.tex: %.lyx
33         lyx -e latex $<
34
35 %.ind: %.dvi
36         makeindex -s l2hidx.ist $*
37
38 %.glo: %.dvi
39         # the glossary, not implemented yet
40         # makeindex -s l2hglo.ist -o $@ $<
41
42
43 clean:
44         # remove intermediate file, not the final pdf's and html's
45         # because these are needed for the distribution
46         rm -rf *.tex *.aux *.dvi *.idx *.ilg *.ind *.log *.toc *~ \#* \
47                 *.ps */*.css */*.pl *.gif core
48
49 superclean:
50         $(MAKE) clean
51         # now get rid of the generated pdf's and html's as well
52         rm -rf *.pdf $(MANUAL).html $(TSS).html