1 | ## $Id$ |
---|
2 | |
---|
3 | # HACK: makeinfo is locale sensitive |
---|
4 | LANG=C |
---|
5 | |
---|
6 | SUFFIXES = .t |
---|
7 | |
---|
8 | MAINTAINERCLEANFILES = |
---|
9 | CLEANFILES = |
---|
10 | MOSTLYCLEANFILES = |
---|
11 | CLEANFILES += $(GENERATED_FILES) |
---|
12 | |
---|
13 | AM_MAKEINFOFLAGS = -I $(top_builddir) -I $(top_srcdir) |
---|
14 | TEXI2DVI = @TEXI2DVI@ -I $(top_builddir) -I $(top_srcdir) |
---|
15 | TEXI2PDF = @TEXI2PDF@ -I $(top_builddir) -I $(top_srcdir) |
---|
16 | |
---|
17 | # HACK: Force generation of version.texi |
---|
18 | version.texi: stamp-vti |
---|
19 | |
---|
20 | # Without $(srcdir) in TEXINPUTS, dvips doesn't find the *.eps |
---|
21 | # we distribute in $(srcdir) |
---|
22 | .dvi.ps: |
---|
23 | TEXINPUTS="$(srcdir)${PATH_SEPARATOR}$$TEXINPUTS" \ |
---|
24 | $(DVIPS) -o $@ $< |
---|
25 | |
---|
26 | ## DVI support |
---|
27 | dvidir = $(pkgdocdir)/dvi |
---|
28 | |
---|
29 | ## PS support |
---|
30 | psdir = $(pkgdocdir)/ps |
---|
31 | |
---|
32 | ## PDF support |
---|
33 | pdfdir = $(pkgdocdir)/pdf |
---|
34 | |
---|
35 | if EPSTOPDF |
---|
36 | .eps.pdf: |
---|
37 | $(EPSTOPDF) $< --outfile=$@ |
---|
38 | endif |
---|
39 | |
---|
40 | $(PROJECT).pdf: $(PROJECT).texi $($(PROJECT)_TEXINFOS) $(PDF_IMAGES) |
---|
41 | CLEANFILES += $(PROJECT).pdf |
---|
42 | |
---|
43 | MOSTLYCLEANFILES += $(PDF_IMAGES) |
---|
44 | |
---|
45 | ## HTML |
---|
46 | SUFFIXES += .html |
---|
47 | |
---|
48 | rtems_header.html: $(top_srcdir)/rtems_header.html.in version.texi |
---|
49 | @sed -e s%\.\./images/%$(top_builddir)/images/%g \ |
---|
50 | -e s%\@VERSION\@%@VERSION@%g \ |
---|
51 | < $< > $@ |
---|
52 | rtems_footer.html: $(top_srcdir)/rtems_footer.html.in version.texi |
---|
53 | @sed -e s%\.\./images/%$(top_builddir)/%g \ |
---|
54 | -e s%\@VERSION\@%@VERSION@%g \ |
---|
55 | < $< > $@ |
---|
56 | |
---|
57 | index.html $(PROJECT)*.html: $(PROJECT).texi $($(PROJECT)_TEXINFOS) \ |
---|
58 | rtems_header.html rtems_footer.html |
---|
59 | $(TEXI2WWW) $(TEXI2WWW_ARGS) -base $(PROJECT) $< |
---|
60 | |
---|
61 | MOSTLYCLEANFILES += index.html $(PROJECT)*.html rtems_header.html \ |
---|
62 | rtems_footer.html |
---|
63 | |
---|
64 | ## Common installation points |
---|
65 | if USE_HTML |
---|
66 | html_project_DATA = index.html $(PROJECT)*.html |
---|
67 | endif |
---|
68 | |
---|
69 | if USE_DVI |
---|
70 | dvi_DATA = $(PROJECT).dvi |
---|
71 | endif # USE_DVI |
---|
72 | |
---|
73 | if USE_PS |
---|
74 | ps_DATA = $(PROJECT).ps |
---|
75 | endif # USE_PS |
---|
76 | |
---|
77 | if USE_PDF |
---|
78 | pdf_DATA = $(PROJECT).pdf |
---|
79 | endif |
---|
80 | |
---|
81 | COMMON_FILES = $(top_srcdir)/common/setup.texi |
---|
82 | COMMON_FILES += $(top_builddir)/common/rtems.texi |
---|
83 | |
---|
84 | $(top_builddir)/common/rtems.texi: $(top_srcdir)/common/rtems.texi.in $(top_builddir)/common/rtems.sed |
---|
85 | sed -f $(top_builddir)/common/rtems.sed \ |
---|
86 | $(top_srcdir)/common/rtems.texi.in > $(top_builddir)/common/rtems.texi |
---|