mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-02-17 15:10:02 +08:00
checkout by generating ltmain.sh, using that to create libtool, and then adding the tags to that, all from config.status. * configure.ac (AC_CONFIG_FILES): Make config/ltmain.sh, and copy it to libltdl. * Makefile.am ($(srcdir)/config/ltmain.sh): This file is now created by config.status. Adjust this rule. (libtoolize): Set CONFIG_COMMANDS to empty to prevent regenerating the libtool script as a side effect of running this rule. * libtool.m4: Bump serial number. Fix comment typos. (_LT_CONFIG_LIBTOOL_INIT, _LT_CONFIG_LIBTOOL, _LT_CONFIG_SAVE_COMMANDS, _LT_CONFIG_COMMANDS: New macros. They don't work for some reason - the variable value quoting in the init section is all wrong. Not used at the moment. (AC_LIBTOOL_CONFIG): Generate libtool from config.status. (_LT_AC_TAG_CONFIG): Add the tags in config.status. (compiler_DEFAULT): Save the compiler value for the DEFAULT tag, or it gets overwritten by the other macros. (EOF): Globally replace with _LT_EOF to avoid namespace pollution. * tests/demo/configure.ac (STATIC): Check $enable_static instead of running ./libtool which doesn't exist yet. (BINARY_HELLDL): Check $lt_cv_sys_global_symbol_pipe with case instead of grepping ./libtool which doesn't exist yet. * tests/pdemo/configure.ac (STATIC, BINARY_HELLDL): Ditto. * doc/libtool.texi (AC_PROG_LIBTOOL): Add some notes about trying to get config details from `libtool --config'. * NEWS: Updated.
107 lines
3.6 KiB
Makefile
107 lines
3.6 KiB
Makefile
## Makefile.am -- Process this file with automake to produce Makefile.in
|
|
##
|
|
## Copyright (C) 2003 Free Software Foundation
|
|
##
|
|
## This program is free software; you can redistribute it and/or modify
|
|
## it under the terms of the GNU General Public License as published by
|
|
## the Free Software Foundation; either version 2 of the License, or
|
|
## (at your option) any later version.
|
|
##
|
|
## This program is distributed in the hope that it will be useful,
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
## GNU General Public License for more details.
|
|
##
|
|
## You should have received a copy of the GNU General Public License
|
|
## along with this program; see the file COPYING. If not, write to
|
|
## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
## Boston, MA 02111-1307, USA.
|
|
|
|
AUTOMAKE_OPTIONS = 1.7 gnu
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
BUILD_SUBDIRS = . libltdl doc tests
|
|
SUBDIRS = $(BUILD_SUBDIRS)
|
|
DIST_SUBDIRS = $(BUILD_SUBDIRS) $(CONF_SUBDIRS)
|
|
|
|
aclocal_macros = m4/libtool.m4 m4/ltdl.m4
|
|
|
|
EXTRA_DIST = $(aclocal_macros) bootstrap libtoolize.in ltmain.in \
|
|
config/mkstamp ChangeLog.0 ChangeLog.1
|
|
CLEANFILES = libtool libtoolize ltmain.shT
|
|
|
|
# These are required by libtoolize.
|
|
pkgdata_SCRIPTS = config/config.guess config/config.sub
|
|
pkgdata_DATA = config/ltmain.sh
|
|
|
|
# This macro file should be visible to Automake's aclocal.
|
|
aclocal_DATA = $(aclocal_macros)
|
|
|
|
# The standalone libtool script, and the libtool distributor.
|
|
bin_SCRIPTS = libtool libtoolize
|
|
|
|
config_status = $(top_builddir)/config.status
|
|
|
|
libtool: $(srcdir)/config/ltmain.sh $(top_builddir)/configure
|
|
CONFIG_FILES= CONFIG_HEADERS= $(SHELL) $(config_status)
|
|
chmod +x $@
|
|
|
|
libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
|
|
CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_COMMANDS= $(SHELL) $(config_status)
|
|
chmod +x $@
|
|
|
|
# TSDEPS will be defined to TSDEPS_DIST at `make dist' time
|
|
TSDEPS =
|
|
TSDEPS_DIST = ChangeLog m4/libtool.m4
|
|
CVS = cvs # set it to `:' to avoid CVS operations
|
|
|
|
.PHONY: timestamps update-timestamps
|
|
timestamps distdir: update-timestamps
|
|
update-timestamps:
|
|
@if (cd $(srcdir) && test -d CVS && \
|
|
$(CVS) -n update $(TSDEPS_DIST) | grep '^M'); then \
|
|
echo "Cannot make dist before commit"; exit 1; else :; fi
|
|
|
|
.PHONY: configure-subdirs
|
|
configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
|
|
@DIST_MAKEFILE_LIST@:
|
|
dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \
|
|
test -d $$dir || mkdir $$dir || exit 1; \
|
|
abs_srcdir=`cd $(top_srcdir) && pwd`; \
|
|
(cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1
|
|
|
|
# Create and install libltdl
|
|
install-data-hook:
|
|
cd libltdl && $(MAKE) local-install-files
|
|
|
|
# Uninstall libltdl
|
|
uninstall-local:
|
|
-rm -rf $(DESTDIR)$(pkgdatadir)/libltdl
|
|
|
|
################################################################
|
|
##
|
|
## Everything past here is useful to the maintainer, but probably not
|
|
## to anybody else (snarfed from automake/Makefile.am).
|
|
##
|
|
|
|
# Tag before making distribution. Also, don't make a distribution if
|
|
# checks fail. Also, make sure the NEWS file is up-to-date.
|
|
cvs-dist: distcheck
|
|
@if sed '1,2d;3q' $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
|
|
echo "NEWS not updated; not releasing" 1>&2; \
|
|
exit 1; \
|
|
fi
|
|
cd $(srcdir) && \
|
|
$(CVS) -q tag `echo "release-$(VERSION)" | sed 's/\./-/g'`
|
|
$(MAKE) dist
|
|
|
|
cvs-diff:
|
|
thisver=`echo "release-$(VERSION)" | sed 's/\./-/g'`; \
|
|
if test -z "$$OLDVERSION"; then \
|
|
prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
|
|
else prevno="$$OLDVERSION"; fi; \
|
|
prevver=release-`echo $$prevno | sed 's/\./-/g'`; \
|
|
$(CVS) -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
|
|
| GZIP=$(GZIP_ENV) gzip -c \
|
|
> $(PACKAGE)-$$prevno-$(VERSION).diff.gz
|