1 | ## $Id$ |
---|
2 | |
---|
3 | SUFFIXES += .t |
---|
4 | |
---|
5 | ## Texinfo support |
---|
6 | TEXINFO_TEX = $(top_srcdir)/texinfo/texinfo.tex |
---|
7 | |
---|
8 | $(srcdir)/stamp-vti: $(PROJECT).texi $(top_srcdir)/configure.in |
---|
9 | @echo "@set UPDATED `$(SHELL) $(srcdir)/mdate-sh \ |
---|
10 | $(srcdir)/$(PROJECT).texi`" > vti.tmp |
---|
11 | @echo "@set EDITION $(EDITION)" >> vti.tmp |
---|
12 | @echo "@set VERSION $(VERSION)" >> vti.tmp |
---|
13 | @cmp -s vti.tmp $(srcdir)/version.texi \ |
---|
14 | || (echo "Updating $(srcdir)/version.texi"; \ |
---|
15 | cp vti.tmp $(srcdir)/version.texi) |
---|
16 | -@rm -f vti.tmp |
---|
17 | @cp $(srcdir)/version.texi $@ |
---|
18 | |
---|
19 | MAINTAINERCLEANFILES += $(PROJECT) $(PROJECT)-[0-9] $(PROJECT)-[0-9][0-9] |
---|
20 | MAINTAINERCLEANFILES += $(GENERATED_FILES) |
---|
21 | |
---|
22 | ## DVI support |
---|
23 | dvidir = $(pkgdatadir)/dvi |
---|
24 | ## dvi_projectdir = $(dvidir)/$(PROJECT) |
---|
25 | |
---|
26 | ## PS support |
---|
27 | psdir = $(pkgdatadir)/ps |
---|
28 | ## ps_projectdir = $(psdir)/$(PROJECT) |
---|
29 | |
---|
30 | ## PDF support |
---|
31 | SUFFIXES += .pdf |
---|
32 | |
---|
33 | pdfdir = $(pkgdatadir)/pdf |
---|
34 | ## pdf_projectdir = $(pdfdir)/$(PROJECT) |
---|
35 | |
---|
36 | SUFFIXES += .eps |
---|
37 | |
---|
38 | if EPSTOPDF |
---|
39 | .eps.pdf: |
---|
40 | $(EPSTOPDF) $< > $@ |
---|
41 | endif |
---|
42 | |
---|
43 | if TEXI2PDF |
---|
44 | .texi.pdf: |
---|
45 | TEXINPUTS=$(srcdir)/$(top_srcdir)/texinfo:$$TEXINPUTS \ |
---|
46 | MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2PDF) $< |
---|
47 | endif |
---|
48 | |
---|
49 | $(PROJECT).pdf: $(PROJECT).texi $($(PROJECT)_TEXINFOS) $(PDF_IMAGES) |
---|
50 | CLEANFILES += $(PROJECT).pdf |
---|
51 | |
---|
52 | MOSTLYCLEANFILES += $(PDF_IMAGES) |
---|
53 | |
---|
54 | ## HTML |
---|
55 | SUFFIXES += .html |
---|
56 | |
---|
57 | html_projectdir = $(htmldir)/$(PROJECT) |
---|
58 | |
---|
59 | TEXI2WWW_ARGS=\ |
---|
60 | -I $(srcdir) \ |
---|
61 | -dirfile ../index.html \ |
---|
62 | -header $(top_builddir)/rtems_header.html \ |
---|
63 | -footer $(top_builddir)/rtems_footer.html \ |
---|
64 | -icons ../images |
---|
65 | |
---|
66 | index.html $(PROJECT)*.html: $(PROJECT).texi \ |
---|
67 | $(top_builddir)/rtems_header.html $(top_builddir)/rtems_footer.html |
---|
68 | $(TEXI2WWW) $(TEXI2WWW_ARGS) -base $(PROJECT) $< |
---|
69 | |
---|
70 | MOSTLYCLEANFILES += index.html $(PROJECT)*.html |
---|
71 | |
---|
72 | ## Common installation points |
---|
73 | if USE_HTML |
---|
74 | html_project_DATA += index.html $(PROJECT)*.html |
---|
75 | endif |
---|
76 | |
---|
77 | if USE_DVI |
---|
78 | dvi_DATA += $(PROJECT).dvi |
---|
79 | endif |
---|
80 | |
---|
81 | if USE_PS |
---|
82 | ps_DATA += $(PROJECT).ps |
---|
83 | endif |
---|
84 | |
---|
85 | if USE_PDF |
---|
86 | pdf_DATA += $(PROJECT).pdf |
---|
87 | endif |
---|