Added documentation install targets
[fw/sdcc] / doc / Makefile
1 # Very simple Makefile for converting the design doc into something useful.
2 TOPDIR = ..
3
4 include $(TOPDIR)/Makefile.common
5
6 TEX = latex
7
8 S = test_suite_spec.tex
9 PDF = $(S:.tex=.pdf)
10 PS = $(S:.tex=.ps)
11 HTML = $(S:.tex=.html)
12
13 all: $(PS) $(PDF) $(HTML)
14
15 %.ps: %.dvi
16         dvips -f.ps $< > $@
17
18 %.pdf: %.dvi
19         dvipdf $< $@
20
21 %.html: %.tex
22         latex2html -no_subdir -split 0 $<
23
24 install:
25         $(INSTALL) -d $(docdir)
26         cp -rf *.html SDCCUdoc.* *.txt *.tex z80 avr $(docdir)
27
28 clean:
29         rm -f $(PS) $(PDF) *.log *.aux *~