1 | ## $Id$ |
---|
2 | |
---|
3 | SUFFIXES = .t |
---|
4 | |
---|
5 | MAINTAINERCLEANFILES = |
---|
6 | MOSTLYCLEANFILES = |
---|
7 | CLEANFILES = |
---|
8 | |
---|
9 | MAINTAINERCLEANFILES += $(PROJECT) $(PROJECT)-[0-9] $(PROJECT)-[0-9][0-9] |
---|
10 | MAINTAINERCLEANFILES += $(GENERATED_FILES) |
---|
11 | |
---|
12 | ## DVI support |
---|
13 | dvidir = $(pkgdocdir)/dvi |
---|
14 | |
---|
15 | ## PS support |
---|
16 | psdir = $(pkgdocdir)/ps |
---|
17 | |
---|
18 | ## PDF support |
---|
19 | SUFFIXES += .pdf |
---|
20 | |
---|
21 | pdfdir = $(pkgdocdir)/pdf |
---|
22 | |
---|
23 | SUFFIXES += .eps |
---|
24 | |
---|
25 | if EPSTOPDF |
---|
26 | .eps.pdf: |
---|
27 | $(EPSTOPDF) $< --outfile=$@ |
---|
28 | endif |
---|
29 | |
---|
30 | $(PROJECT).pdf: $(PROJECT).texi $($(PROJECT)_TEXINFOS) $(PDF_IMAGES) |
---|
31 | CLEANFILES += $(PROJECT).pdf |
---|
32 | |
---|
33 | MOSTLYCLEANFILES += $(PDF_IMAGES) |
---|
34 | |
---|
35 | ## HTML |
---|
36 | SUFFIXES += .html |
---|
37 | |
---|
38 | rtems_header.html: $(top_srcdir)/rtems_header.html.in version.texi |
---|
39 | @sed -e s%\.\./images/%$(top_builddir)/images/%g \ |
---|
40 | -e s%\@VERSION\@%@VERSION@%g \ |
---|
41 | < $< > $@ |
---|
42 | rtems_footer.html: $(top_srcdir)/rtems_footer.html.in version.texi |
---|
43 | @sed -e s%\.\./images/%$(top_builddir)/%g \ |
---|
44 | -e s%\@VERSION\@%@VERSION@%g \ |
---|
45 | < $< > $@ |
---|
46 | |
---|
47 | index.html $(PROJECT)*.html: $(PROJECT).texi $($(PROJECT)_TEXINFOS) \ |
---|
48 | rtems_header.html rtems_footer.html |
---|
49 | $(TEXI2WWW) $(TEXI2WWW_ARGS) -base $(PROJECT) $< |
---|
50 | |
---|
51 | MOSTLYCLEANFILES += index.html $(PROJECT)*.html rtems_header.html \ |
---|
52 | rtems_footer.html |
---|
53 | |
---|
54 | ## Common installation points |
---|
55 | if USE_HTML |
---|
56 | html_project_DATA = index.html $(PROJECT)*.html |
---|
57 | endif |
---|
58 | |
---|
59 | if USE_DVI |
---|
60 | dvi_DATA = $(PROJECT).dvi |
---|
61 | |
---|
62 | .texi.dvi: |
---|
63 | $(TEXI2DVI) -q -I $(srcdir) -I $(top_srcdir) $< |
---|
64 | |
---|
65 | if USE_PS |
---|
66 | ps_DATA = $(PROJECT).ps |
---|
67 | .dvi.ps: |
---|
68 | TEXINPUTS="$(srcdir)$(PATH_SEPARATOR)$$TEXINPUTS" \ |
---|
69 | $(DVIPS) $< -o $@ |
---|
70 | endif # USE_PS |
---|
71 | |
---|
72 | endif # USE_DVI |
---|
73 | |
---|
74 | if USE_PDF |
---|
75 | pdf_DATA = $(PROJECT).pdf |
---|
76 | |
---|
77 | if TEXI2PDF |
---|
78 | .texi.pdf: |
---|
79 | rm -f *.aux *.cp *.fn *.ky *.pg *.tp *.toc *.vr |
---|
80 | $(TEXI2PDF) -q -I $(srcdir) -I $(top_srcdir) $< |
---|
81 | endif |
---|
82 | |
---|
83 | endif |
---|