source: rtems/doc/project.am @ 21e473b

4.104.114.84.95
Last change on this file since 21e473b was 21e473b, checked in by Joel Sherrill <joel.sherrill@…>, on 01/18/02 at 15:10:54

2002-01-18 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Require automake-1.5.
  • project.am: Reworked.
  • main.am: New.
  • configure.ac: New.
  • configure.in: Removed.
  • bootstrap: Sync with RTEMS's toplevel bootstrap.sh.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1## $Id$
2
3SUFFIXES = .t
4
5MAINTAINERCLEANFILES =
6MOSTLYCLEANFILES =
7CLEANFILES =
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
27MAINTAINERCLEANFILES += $(PROJECT) $(PROJECT)-[0-9] $(PROJECT)-[0-9][0-9]
28MAINTAINERCLEANFILES += $(GENERATED_FILES)
29
30## DVI support
31dvidir = $(pkgdatadir)/dvi
32## dvi_projectdir = $(dvidir)/$(PROJECT)
33
34## PS support
35psdir = $(pkgdatadir)/ps
36## ps_projectdir = $(psdir)/$(PROJECT)
37
38## PDF support
39SUFFIXES += .pdf
40
41pdfdir = $(pkgdatadir)/pdf
42## pdf_projectdir = $(pdfdir)/$(PROJECT)
43
44SUFFIXES += .eps
45
46if EPSTOPDF
47.eps.pdf:
48        $(EPSTOPDF) $< --outfile=$@
49endif
50
51$(PROJECT).pdf: $(PROJECT).texi $($(PROJECT)_TEXINFOS) $(PDF_IMAGES)
52CLEANFILES += $(PROJECT).pdf
53
54MOSTLYCLEANFILES += $(PDF_IMAGES)
55
56## HTML
57SUFFIXES += .html
58
59rtems_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        < $< > $@
63rtems_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
68index.html $(PROJECT)*.html: $(PROJECT).texi \
69    rtems_header.html rtems_footer.html
70        $(TEXI2WWW) $(TEXI2WWW_ARGS) -base $(PROJECT) $<
71
72MOSTLYCLEANFILES += index.html $(PROJECT)*.html rtems_header.html \
73   rtems_footer.html
74
75## Common installation points
76if USE_HTML
77html_project_DATA = index.html $(PROJECT)*.html
78endif
79
80if USE_DVI
81dvi_DATA = $(PROJECT).dvi
82
83.texi.dvi:
84        $(TEXI2DVI) -q -I $(srcdir) -I $(top_srcdir) $<
85
86if USE_PS
87ps_DATA = $(PROJECT).ps
88.dvi.ps:
89        TEXINPUTS=$(srcdir):$$TEXINPUTS \
90        $(DVIPS) $< -o $@
91endif # USE_PS
92
93endif # USE_DVI
94
95if USE_PDF
96pdf_DATA = $(PROJECT).pdf
97
98if TEXI2PDF
99.texi.pdf:
100        rm -f *.aux *.cp *.fn *.ky *.pg *.tp *.toc *.vr
101        $(TEXI2PDF) -q -I $(srcdir) -I $(top_srcdir) $<
102endif
103
104endif
Note: See TracBrowser for help on using the repository browser.