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