2002-01-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* 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.
This commit is contained in:
Joel Sherrill
2002-01-18 15:10:54 +00:00
parent 1615cf1243
commit 21e473b0b0
6 changed files with 75 additions and 61 deletions

View File

@@ -1,3 +1,12 @@
2002-01-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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.
2002-01-17 Joel Sherrill <joel@OARcorp.com>
* VERSION: Updated to rtems-doc-ss-20010117.

View File

@@ -2,7 +2,7 @@
# $Id$
#
AUTOMAKE_OPTIONS = foreign 1.4
AUTOMAKE_OPTIONS = foreign 1.5
# NOTE: The order of the directories is essential.
# + tools, common and images are shared across many documents

View File

@@ -5,6 +5,13 @@
#
# $Id$
# this is not meant to be exported outside the source tree
# NOTE: Inspired by libtool's autogen script
# to be run from the toplevel directory of RTEMS'
# source tree
progname=`basename $0`
top_srcdir=`dirname $0`
@@ -26,22 +33,11 @@ usage()
exit 1;
}
generate()
{
dir=$1
amopts=$2
aclocal_amflags=$3
( test "$quiet" = "true" || echo "$dir";
cd $dir;
aclocal $aclocal_amflags
autoconf
test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
test -f Makefile.am && automake $amopts ;
test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \
&& echo timestamp > stamp-h.in
)
}
if test ! -f $top_srcdir/VERSION; then
echo "${progname}:"
echo " Installation problem: Can't find file VERSION"
exit 1;
fi
while test $# -gt 0; do
case $1 in
@@ -65,33 +61,38 @@ done
case $mode in
generate)
case $top_srcdir in
/* ) aclocal_dir=$top_srcdir/aclocal
/* ) aclocal_dir=$top_srcdir
;;
*) aclocal_dir=`pwd`/$top_srcdir/aclocal
*) aclocal_dir=`pwd`/$top_srcdir
;;
esac
if test -d $aclocal_dir; then
aclocal_amflags="-I $aclocal_dir"
fi
confs=`find . -name 'configure.in' -print | sort`
confs=`find . \( -name 'configure.in' -o -name 'configure.ac' \) -print`
for i in $confs; do
dir=`dirname $i`;
generate $dir "-a $verbose" "$aclocal_amflags";
dir=`dirname $i`;
configure=`basename $i`;
( test "$quiet" = "true" || echo "$dir";
cd $dir;
pat="s,\$(RTEMS_TOPdir),${aclocal_dir},g"
aclocal_args=`grep '^[ ]*ACLOCAL_AMFLAGS' Makefile.am | \
sed -e 's%.*ACLOCAL_AMFLAGS.*\=[ ]*%%g' -e $pat ` ;
test "$verbose" = "-v" && echo "aclocal $aclocal_args"
aclocal $aclocal_args;
test -n "`grep CONFIG_HEADER ${configure}`" && autoheader \
&& test "$verbose" = "-v" && echo "autoheader";
test -n "`grep RTEMS_BSP_CONFIGURE ${configure}`" && autoheader \
&& test "$verbose" = "-v" && echo "autoheader";
test -f Makefile.am && automake -a -c $verbose ;
autoconf;
test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \
&& echo timestamp > stamp-h.in
)
done
;;
clean)
test "$quiet" = "$true" || echo "removing automake support files"
find . -name 'config.guess' -print | xargs rm -f
find . -name 'config.sub' -print | xargs rm -f
find . -name 'install-sh' -print | xargs rm -f
find . -name 'missing' -print | xargs rm -f
find . -name 'mkinstalldirs' -print | xargs rm -f
find . -name 'mdate-sh' -print | xargs rm -f
test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;
for i in $files; do if test -f $i; then
@@ -103,8 +104,8 @@ clean)
files=`find . -name 'configure' -print` ;
test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
for i in $files; do if test -f $i; then
rm -f $i
test "$verbose" = "-v" && echo "$i"
rm -f $i config.guess config.sub depcomp install-sh missing mkinstalldirs
test "$verbose" = "-v" && echo "$i"
fi; done
test "$quiet" = "true" || echo "removing aclocal.m4 files"
@@ -116,6 +117,7 @@ clean)
fi; done
find . -name '*~' -print | xargs rm -f
find . -name 'bspopts.h*' -print | xargs rm -f
find . -name '*.orig' -print | xargs rm -f
find . -name '*.rej' -print | xargs rm -f
find . -name 'config.status' -print | xargs rm -f

View File

@@ -1,10 +1,11 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.13)
AC_PREREQ(2.52)
AC_INIT(project.am)
AC_INIT
AC_CONFIG_SRCDIR([project.am])
RTEMS_VERSION=eng-20010816b
RTEMS_VERSION=4.5.0-beta3
AM_INIT_AUTOMAKE(rtemsdoc,${RTEMS_VERSION},no)
AM_MAINTAINER_MODE
@@ -131,8 +132,7 @@ dnl Checks for library functions.
AC_CONFIG_SUBDIRS(tools)
AC_OUTPUT(
Makefile
AC_CONFIG_FILES([Makefile
rtems_support.html
index.html
images/Makefile
@@ -167,4 +167,5 @@ supplements/sparc/Makefile
supplements/template/Makefile
gnu_docs/Makefile
src2html/Makefile
)
])
AC_OUTPUT

11
doc/main.am Normal file
View File

@@ -0,0 +1,11 @@
TEXINFO_TEX = ../texinfo/texinfo.tex
TEXI_COMMON = -I ..
html_projectdir = $(htmldir)/$(PROJECT)
TEXI2WWW_ARGS=\
-I $(srcdir) -I $(top_srcdir) \
-dirfile ../index.html \
-header rtems_header.html \
-footer rtems_footer.html \
-icons ../images

View File

@@ -1,18 +1,19 @@
## $Id$
SUFFIXES += .t
SUFFIXES = .t
MAINTAINERCLEANFILES =
MOSTLYCLEANFILES =
CLEANFILES =
## Texinfo support
TEXINFO_TEX = ../texinfo/texinfo.tex
## TEXINPUTS = $(srcdir):$(top_srcdir)
TEXI_COMMON = -I ..
.texi:
@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
cd $(srcdir) && \
$(MAKEINFO) $(TEXI_COMMON) `echo $< | sed 's,.*/,,'`
$(srcdir)/stamp-vti: $(PROJECT).texi $(top_srcdir)/configure.in
$(srcdir)/stamp-vti: $(PROJECT).texi $(top_srcdir)/configure.ac
@echo "@set UPDATED `$(SHELL) $(srcdir)/mdate-sh \
$(srcdir)/$(PROJECT).texi`" > vti.tmp
@echo "@set EDITION $(EDITION)" >> vti.tmp
@@ -55,16 +56,6 @@ MOSTLYCLEANFILES += $(PDF_IMAGES)
## HTML
SUFFIXES += .html
html_projectdir = $(htmldir)/$(PROJECT)
TEXI2WWW_ARGS=\
-I $(srcdir) \
-I $(top_srcdir) \
-dirfile ../index.html \
-header rtems_header.html \
-footer rtems_footer.html \
-icons $(top_builddir)/images
rtems_header.html: $(top_srcdir)/rtems_header.html.in version.texi
@sed -e s%\.\./images/%$(top_builddir)/images/%g \
-e s%\@VERSION\@%@VERSION@%g \
@@ -83,17 +74,17 @@ MOSTLYCLEANFILES += index.html $(PROJECT)*.html rtems_header.html \
## Common installation points
if USE_HTML
html_project_DATA += index.html $(PROJECT)*.html
html_project_DATA = index.html $(PROJECT)*.html
endif
if USE_DVI
dvi_DATA += $(PROJECT).dvi
dvi_DATA = $(PROJECT).dvi
.texi.dvi:
$(TEXI2DVI) -q -I $(srcdir) -I $(top_srcdir) $<
if USE_PS
ps_DATA += $(PROJECT).ps
ps_DATA = $(PROJECT).ps
.dvi.ps:
TEXINPUTS=$(srcdir):$$TEXINPUTS \
$(DVIPS) $< -o $@
@@ -102,7 +93,7 @@ endif # USE_PS
endif # USE_DVI
if USE_PDF
pdf_DATA += $(PROJECT).pdf
pdf_DATA = $(PROJECT).pdf
if TEXI2PDF
.texi.pdf: