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