mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Rehashed distribution system, in preparation for nightly
snapshots. Other changes in subdirectories. * Makefile.in (dist): Rewritten --- the old target was out of date, dependent on files that we don't have, and relied on GNU tar. The new target is simpler. (VERSION, srcdir, dist_dirs): New variables. (DISTFILES): Renamed from localfiles. Added GUILE-VERSION and TODO. (localtreats): Variable removed. We don't have this file. (info): cd to doc and make info there; don't make info in every ${subdir}; those Makefiles don't know what to do. (distname, distdir, treats, announcefile): Variables removed. (manifest-file): Target removed. (dist-dir): New target, responsible for distributable files in this directory. (GZIP, GZIP_EXT, TAR_VERBOSE, DIST_NAME): New variables, controlling the 'dist' target. * configure.in: Substitute GUILE-VERSION into the top-level Makefile. Build doc/Makefile from doc/Makefile.in.
This commit is contained in:
parent
22bf683b27
commit
2d26def019
3 changed files with 46 additions and 42 deletions
69
Makefile.in
69
Makefile.in
|
@ -14,13 +14,19 @@
|
||||||
# along with this software; see the file COPYING. If not, write to
|
# along with this software; see the file COPYING. If not, write to
|
||||||
# the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
VERSION = @GUILE_VERSION@
|
||||||
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
|
srcdir=@srcdir@
|
||||||
subdirs=@existingdirs@
|
subdirs=@existingdirs@
|
||||||
|
dist_dirs=${subdirs} doc
|
||||||
|
|
||||||
localfiles = ANNOUNCE \
|
DISTFILES = ANNOUNCE \
|
||||||
|
BUILDING \
|
||||||
COPYING \
|
COPYING \
|
||||||
|
GUILE-VERSION \
|
||||||
|
TODO \
|
||||||
Makefile.in \
|
Makefile.in \
|
||||||
configure \
|
configure \
|
||||||
configure.in \
|
configure.in \
|
||||||
|
@ -28,8 +34,6 @@ localfiles = ANNOUNCE \
|
||||||
config.guess \
|
config.guess \
|
||||||
install-sh
|
install-sh
|
||||||
|
|
||||||
localtreats = ANN.BX
|
|
||||||
|
|
||||||
# `all'
|
# `all'
|
||||||
# Compile the entire program. This should be the default target.
|
# Compile the entire program. This should be the default target.
|
||||||
# This target need not rebuild any documentation files; info files
|
# This target need not rebuild any documentation files; info files
|
||||||
|
@ -167,12 +171,7 @@ TAGS:
|
||||||
# should run the Makeinfo program, which is part of the Texinfo2
|
# should run the Makeinfo program, which is part of the Texinfo2
|
||||||
# distribution.
|
# distribution.
|
||||||
info:
|
info:
|
||||||
for dir in ${subdirs}; do \
|
cd doc; ${MAKE} info
|
||||||
cd $$dir; \
|
|
||||||
${MAKE} info; \
|
|
||||||
cd .. ;\
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
#`dvi'
|
#`dvi'
|
||||||
# Generate DVI files for all TeXinfo documentation. For example:
|
# Generate DVI files for all TeXinfo documentation. For example:
|
||||||
|
@ -209,35 +208,33 @@ dvi:
|
||||||
# The `dist' target should explicitly depend on all non-source files
|
# The `dist' target should explicitly depend on all non-source files
|
||||||
# that are in the distribution, to make sure they are up to date in
|
# that are in the distribution, to make sure they are up to date in
|
||||||
# the distribution. *Ref Making Releases: (standards)Releases.
|
# the distribution. *Ref Making Releases: (standards)Releases.
|
||||||
distname = brand-x
|
.PHONY: dist
|
||||||
distdir = $(distname)
|
GZIP=gzip --best
|
||||||
treats = $(localtreats)
|
GZIP_EXT=.gz
|
||||||
announcefile = ANN.BX
|
TAR_VERBOSE=v
|
||||||
|
DIST_NAME=guile-${VERSION}
|
||||||
manifest-file:
|
dist: info
|
||||||
rm -f MANIFEST
|
@echo "Creating distribution for ${DIST_NAME}."
|
||||||
cp $(announcefile) ANNOUNCE
|
rm -rf ${DIST_NAME} ${DIST_NAME}.tar${GZIP_EXT}
|
||||||
for treat in $(localfiles) $(treats) ; \
|
${MAKE} dist-dir DISTDIR="${DIST_NAME}"
|
||||||
do echo $$treat >> MANIFEST ; \
|
for dir in ${dist_dirs}; do \
|
||||||
|
( DISTDIR="../${DIST_NAME}/$${dir}"; \
|
||||||
|
cd $${dir} && \
|
||||||
|
${MAKE} dist-dir DISTDIR="$${DISTDIR}" \
|
||||||
|
); \
|
||||||
done
|
done
|
||||||
for subdir in $(subdirs) ; do \
|
tar chf${TAR_VERBOSE} - ${DIST_NAME} | ${GZIP} > "${DIST_NAME}.tar${GZIP_EXT}"
|
||||||
make -s -f $$subdir/Makefile.in SUBDIR=$$subdir manifest >> MANIFEST ; \
|
rm -rf ${DIST_NAME}
|
||||||
done
|
|
||||||
sed -e "s%^%$(distdir)/%" MANIFEST > M2
|
|
||||||
sed -e "/Entering dir/d" -e "/Leaving dir/d" M2 > MANIFEST
|
|
||||||
rm M2
|
|
||||||
|
|
||||||
|
# The `dist' target in the top-level Makefile uses this `dist-dir'
|
||||||
|
# target to select the appropriate files for distribution from the
|
||||||
dist: manifest-file
|
# directory containing this Makefile.
|
||||||
mkdir $(distdir)
|
.PHONY: dist-dir
|
||||||
- cd $(distdir); \
|
dist-dir:
|
||||||
for file in $(localfiles) $(treats) $(subdirs); do ln -s ../$$file .; done; \
|
mkdir ${DISTDIR}
|
||||||
cd ..; \
|
for i in ${DISTFILES}; do \
|
||||||
gtar -zhcvf $(distname).tar.gz --files-from MANIFEST
|
ln $(srcdir)/$${i} ${DISTDIR}; \
|
||||||
rm -rf $(distdir)
|
done
|
||||||
-gtar ztvf $(distname).tar.gz | grep ".*~" > BACKUPS
|
|
||||||
test -s BACKUPS && (echo WARNING -- MANIFEST INCLUDES BACK FILES; cat BACKUPS)
|
|
||||||
|
|
||||||
#`check'
|
#`check'
|
||||||
# Perform self-tests (if any). The user must build the program
|
# Perform self-tests (if any). The user must build the program
|
||||||
|
|
14
configure
vendored
14
configure
vendored
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated automatically using autoconf version 2.9
|
# Generated automatically using autoconf version 2.10
|
||||||
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This configure script is free software; the Free Software Foundation
|
# This configure script is free software; the Free Software Foundation
|
||||||
|
@ -330,7 +330,7 @@ EOF
|
||||||
verbose=yes ;;
|
verbose=yes ;;
|
||||||
|
|
||||||
-version | --version | --versio | --versi | --vers)
|
-version | --version | --versio | --versi | --vers)
|
||||||
echo "configure generated by autoconf version 2.9"
|
echo "configure generated by autoconf version 2.10"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
|
||||||
-with-* | --with-*)
|
-with-* | --with-*)
|
||||||
|
@ -513,6 +513,8 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
. $srcdir/GUILE-VERSION
|
||||||
|
|
||||||
all_subdirs=`cat $srcdir/*/PLUGIN/REQ $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
all_subdirs=`cat $srcdir/*/PLUGIN/REQ $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
||||||
req_subdirs=`cat $srcdir/*/PLUGIN/REQ /dev/null | tsort | xargs echo`
|
req_subdirs=`cat $srcdir/*/PLUGIN/REQ /dev/null | tsort | xargs echo`
|
||||||
opt_subdirs=`cat $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
opt_subdirs=`cat $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
||||||
|
@ -580,6 +582,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
trap '' 1 2 15
|
trap '' 1 2 15
|
||||||
cat > confcache <<\EOF
|
cat > confcache <<\EOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
|
@ -668,7 +671,7 @@ do
|
||||||
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
||||||
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
||||||
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
||||||
echo "$CONFIG_STATUS generated by autoconf version 2.9"
|
echo "$CONFIG_STATUS generated by autoconf version 2.10"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
-help | --help | --hel | --he | --h)
|
-help | --help | --hel | --he | --h)
|
||||||
echo "\$ac_cs_usage"; exit 0 ;;
|
echo "\$ac_cs_usage"; exit 0 ;;
|
||||||
|
@ -678,7 +681,7 @@ done
|
||||||
|
|
||||||
ac_given_srcdir=$srcdir
|
ac_given_srcdir=$srcdir
|
||||||
|
|
||||||
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
trap 'rm -fr `echo "Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
||||||
EOF
|
EOF
|
||||||
cat >> $CONFIG_STATUS <<EOF
|
cat >> $CONFIG_STATUS <<EOF
|
||||||
|
|
||||||
|
@ -710,12 +713,13 @@ s%@infodir@%$infodir%g
|
||||||
s%@mandir@%$mandir%g
|
s%@mandir@%$mandir%g
|
||||||
s%@subdirs@%$subdirs%g
|
s%@subdirs@%$subdirs%g
|
||||||
s%@existingdirs@%$existingdirs%g
|
s%@existingdirs@%$existingdirs%g
|
||||||
|
s%@GUILE_VERSION@%$GUILE_VERSION%g
|
||||||
|
|
||||||
CEOF
|
CEOF
|
||||||
EOF
|
EOF
|
||||||
cat >> $CONFIG_STATUS <<EOF
|
cat >> $CONFIG_STATUS <<EOF
|
||||||
|
|
||||||
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile"}
|
||||||
EOF
|
EOF
|
||||||
cat >> $CONFIG_STATUS <<\EOF
|
cat >> $CONFIG_STATUS <<\EOF
|
||||||
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
AC_INIT(Makefile.in)
|
AC_INIT(Makefile.in)
|
||||||
|
|
||||||
|
. $srcdir/GUILE-VERSION
|
||||||
|
|
||||||
all_subdirs=`cat $srcdir/*/PLUGIN/REQ $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
all_subdirs=`cat $srcdir/*/PLUGIN/REQ $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
||||||
req_subdirs=`cat $srcdir/*/PLUGIN/REQ /dev/null | tsort | xargs echo`
|
req_subdirs=`cat $srcdir/*/PLUGIN/REQ /dev/null | tsort | xargs echo`
|
||||||
opt_subdirs=`cat $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
opt_subdirs=`cat $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
||||||
|
@ -47,4 +49,5 @@ fi
|
||||||
|
|
||||||
|
|
||||||
AC_SUBST(existingdirs)
|
AC_SUBST(existingdirs)
|
||||||
AC_OUTPUT(Makefile)
|
AC_SUBST(GUILE_VERSION)
|
||||||
|
AC_OUTPUT(Makefile doc/Makefile)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue