source: rtems/doc/project.am @ 1bce637

4.104.114.84.95
Last change on this file since 1bce637 was 110445c, checked in by Joel Sherrill <joel.sherrill@…>, on 06/10/00 at 19:41:09

Patch rtems-rc-4.5.0-21.diff from Ralf Corsepius <corsepiu@…>
which splits the current monolithic specs files into a sequence of
subparts. These can be concatenated togather to make a the whole .spec
file. This cleans up the maintenance problem of having "all languages"
and a "C/C++ only" gccnewlib spec files. Plus it should make it easier
to produce variants like the gdb-m68k-bdm which require special hackery. :)
Ralf's comments:

It addresses the way *.spec.in get composed inside of the source
tree.

Changes:

  • Each spec.in is broken into several files (*.add), one *.add file per sub-package.
  • Each Makefile.am composes spec.ins from the *.add files
  • Removal of redundant automake support files.
  • Default value for BuildRoot? changed to /tmp/<spec-file-name>
  • %clean stage added to *specs

Advantages (IMHO).

  • The *.add files are easier to adminstrate and more flexible in comparison to the former *.specs.ins.
  • gccnewlib_c_only.spec.in now is composed from the same sources as gccnewlib.spec.in (less errors)
  • If using the default BuildRoot? --clean now deletes all files that were generated while building.

Notes:

  • rtems.spec.in has not yet been adapted to the scheme used for the other *spec.ins
  • Except for cosmetical changes the internals of the *.spec files should not have changed.

To Apply:

cvs rm -f scripts/binutils/binutils.spec.in
cvs rm -f scripts/gccnewlib/gccnewlib.spec.in
cvs rm -f scripts/gccnewlib/gccnewlib_c_only.spec.in
cvs rm -f scripts/gdb/gdb.spec.in
cvs rm -f scripts/config.sub
cvs rm -f scripts/config.guess
cvs rm -f scripts/install-sh
cvs rm -f scripts/mkinstalldirs
cvs rm -f scripts/missing

patch -p1 < rtems-rc-4.5.0-21.diff

cvs add scripts/*/*.add
cvs add scripts/*/README

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