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