source: rtems/doc/project.am @ 6449498

4.104.114.84.95
Last change on this file since 6449498 was 6449498, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 17, 2002 at 9:47:47 PM

2001-01-17 Joel Sherrill <joel@…>

  • SUPPORT, LICENSE: New files.
  • Numerous files touched as part of merging the 4.5 branch onto the mainline development trunk and ensuring that the script that cuts snapshots and releases works on the documentation.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1## $Id$
2
3SUFFIXES += .t
4
5## Texinfo support
6TEXINFO_TEX = ../texinfo/texinfo.tex
7## TEXINPUTS = $(srcdir):$(top_srcdir)
8TEXI_COMMON = -I ..
9
10.texi:
11        @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
12        cd $(srcdir) && \
13          $(MAKEINFO) $(TEXI_COMMON) `echo $< | sed 's,.*/,,'`
14
15$(srcdir)/stamp-vti: $(PROJECT).texi $(top_srcdir)/configure.in
16        @echo "@set UPDATED `$(SHELL) $(srcdir)/mdate-sh \
17          $(srcdir)/$(PROJECT).texi`" > vti.tmp
18        @echo "@set EDITION $(EDITION)" >> vti.tmp
19        @echo "@set VERSION $(VERSION)" >> vti.tmp
20        @cmp -s vti.tmp $(srcdir)/version.texi \
21          || (echo "Updating $(srcdir)/version.texi"; \
22              cp vti.tmp $(srcdir)/version.texi)
23        -@rm -f vti.tmp
24        @cp $(srcdir)/version.texi $@
25
26MAINTAINERCLEANFILES += $(PROJECT) $(PROJECT)-[0-9] $(PROJECT)-[0-9][0-9]
27MAINTAINERCLEANFILES += $(GENERATED_FILES)
28
29## DVI support
30dvidir = $(pkgdatadir)/dvi
31## dvi_projectdir = $(dvidir)/$(PROJECT)
32
33## PS support
34psdir = $(pkgdatadir)/ps
35## ps_projectdir = $(psdir)/$(PROJECT)
36
37## PDF support
38SUFFIXES += .pdf
39
40pdfdir = $(pkgdatadir)/pdf
41## pdf_projectdir = $(pdfdir)/$(PROJECT)
42
43SUFFIXES += .eps
44
45if EPSTOPDF
46.eps.pdf:
47        $(EPSTOPDF) $< --outfile=$@
48endif
49
50$(PROJECT).pdf: $(PROJECT).texi $($(PROJECT)_TEXINFOS) $(PDF_IMAGES)
51CLEANFILES += $(PROJECT).pdf
52
53MOSTLYCLEANFILES += $(PDF_IMAGES)
54
55## HTML
56SUFFIXES += .html
57
58html_projectdir = $(htmldir)/$(PROJECT)
59
60TEXI2WWW_ARGS=\
61-I $(srcdir) \
62-I $(top_srcdir) \
63-dirfile ../index.html \
64-header rtems_header.html \
65-footer rtems_footer.html \
66-icons $(top_builddir)/images
67
68rtems_header.html: $(top_srcdir)/rtems_header.html.in version.texi
69        @sed -e s%\.\./images/%$(top_builddir)/images/%g \
70        -e s%\@VERSION\@%@VERSION@%g \
71        < $< > $@
72rtems_footer.html: $(top_srcdir)/rtems_footer.html.in version.texi
73        @sed -e s%\.\./images/%$(top_builddir)/%g \
74        -e s%\@VERSION\@%@VERSION@%g \
75        < $< > $@
76
77index.html $(PROJECT)*.html: $(PROJECT).texi \
78    rtems_header.html rtems_footer.html
79        $(TEXI2WWW) $(TEXI2WWW_ARGS) -base $(PROJECT) $<
80
81MOSTLYCLEANFILES += index.html $(PROJECT)*.html rtems_header.html \
82   rtems_footer.html
83
84## Common installation points
85if USE_HTML
86html_project_DATA += index.html $(PROJECT)*.html
87endif
88
89if USE_DVI
90dvi_DATA += $(PROJECT).dvi
91
92.texi.dvi:
93        $(TEXI2DVI) -q -I $(srcdir) -I $(top_srcdir) $<
94
95if USE_PS
96ps_DATA += $(PROJECT).ps
97.dvi.ps:
98        TEXINPUTS=$(srcdir):$$TEXINPUTS \
99        $(DVIPS) $< -o $@
100endif # USE_PS
101
102endif # USE_DVI
103
104if USE_PDF
105pdf_DATA += $(PROJECT).pdf
106
107if TEXI2PDF
108.texi.pdf:
109        rm -f *.aux *.cp *.fn *.ky *.pg *.tp *.toc *.vr
110        $(TEXI2PDF) -q -I $(srcdir) -I $(top_srcdir) $<
111endif
112
113endif
Note: See TracBrowser for help on using the repository browser.