libtool/Makefile.am

113 lines
3.5 KiB
Makefile
Raw Normal View History

## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = 1.3e gnu
BUILD_SUBDIRS = . libltdl doc tests
1999-01-14 23:07:12 +08:00
SUBDIRS = $(BUILD_SUBDIRS)
DIST_SUBDIRS = $(BUILD_SUBDIRS) $(CONF_SUBDIRS)
1997-04-02 02:29:23 +08:00
# We need to export these variables
1997-04-02 03:19:30 +08:00
CFLAGS = @CFLAGS@
CPPLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS= @LIBS@
1997-04-02 03:19:30 +08:00
aclocal_macros = libtool.m4 ltdl.m4
1997-04-02 03:18:28 +08:00
EXTRA_DIST = $(aclocal_macros) bootstrap libtoolize.in ltmain.in \
mkstamp ChangeLog.0 ChangeLog.1
CLEANFILES = libtool libtoolize ltmain.shT
1997-04-02 02:29:23 +08:00
# These are required by libtoolize.
pkgdata_SCRIPTS = config.guess config.sub
pkgdata_DATA = ltmain.sh
1997-04-02 02:29:23 +08:00
1997-04-02 02:57:49 +08:00
# This macro file should be visible to Automake's aclocal.
1997-04-02 03:18:28 +08:00
aclocal_DATA = $(aclocal_macros)
1997-04-02 02:29:23 +08:00
# The standalone libtool script, and the libtool distributor.
bin_SCRIPTS = libtool libtoolize
libtool: $(srcdir)/ltmain.sh $(top_builddir)/configure.ac
$(SHELL) $(top_builddir)/config.status --recheck
chmod +x $@
libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) $(top_builddir)/config.status
chmod +x $@
$(srcdir)/ltmain.sh: $(srcdir)/ltmain.in $(TSDEPS)
-rm -f ltmain.shT
date=`$(SHELL) $(srcdir)/mkstamp < $(srcdir)/ChangeLog` && \
sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' \
-e "s%@""TIMESTAMP@%$$date%" $(srcdir)/ltmain.in > ltmain.shT
mv -f ltmain.shT $@ || \
(rm -f $@ && cp ltmain.shT $@ && rm -f ltmain.shT)
# TSDEPS will be defined to TSDEPS_DIST at `make dist' time
TSDEPS =
TSDEPS_DIST = ChangeLog 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
1997-04-02 03:18:28 +08:00
# All our rules should depend on these demo files.
all-recursive: $(srcdir)/libltdl/acinclude.m4 $(ACINCLUDE_M4_LIST)
@srcdir@/libltdl/acinclude.m4: $(srcdir)/libtool.m4 $(srcdir)/ltdl.m4
-rm -f $@ $@T
cat $(srcdir)/libtool.m4 $(srcdir)/ltdl.m4 > $@T
mv $@T $@
@ACINCLUDE_M4_LIST@: $(srcdir)/libtool.m4
-rm -f $@ $@T
cat $(srcdir)/libtool.m4 > $@T
mv $@T $@
1998-12-09 02:36:31 +08:00
.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`; \
1999-01-15 17:21:04 +08:00
(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:
1999-04-25 17:08:09 +08:00
-rm -rf $(DESTDIR)$(pkgdatadir)/libltdl
1998-12-09 02:36:31 +08:00
################################################################
##
## 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 \
1998-12-09 02:36:31 +08:00
echo "NEWS not updated; not releasing" 1>&2; \
exit 1; \
fi
cd $(srcdir) && \
$(CVS) -q tag `echo "release-$(VERSION)" | sed 's/\./-/g'`
1998-12-09 02:36:31 +08:00
$(MAKE) dist
cvs-diff:
thisver=`echo "release-$(VERSION)" | sed 's/\./-/g'`; \
1998-12-09 02:36:31 +08:00
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) \
1998-12-09 02:36:31 +08:00
> $(PACKAGE)-$$prevno-$(VERSION).diff