libtool/Makefile.am

57 lines
1.9 KiB
Makefile
Raw Normal View History

1997-04-02 02:29:23 +08:00
## Process Makefile.am with automake to create Makefile.in.
## Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
AUTOMAKE_OPTIONS = gnits
1997-04-02 02:49:25 +08:00
SUBDIRS = doc tests
1997-04-02 02:29:23 +08:00
1997-04-02 02:46:48 +08:00
# Distribute ltconfig and ltmain.sh so that the demo directory works.
1997-04-02 03:04:40 +08:00
EXTRA_DIST = libtool.m4 libtoolize.in ltconfig ltconfig.in \
1997-04-02 02:53:35 +08:00
ltmain.sh ltmain.sh.in README-automake
1997-04-02 02:46:48 +08:00
CLEANFILES = libtool libtoolize
1997-04-02 02:57:49 +08:00
MAINTAINERCLEANFILES = ltconfig ltmain.sh
1997-04-02 02:29:23 +08:00
# Files in the demo subdirectory that go in the distribution.
1997-04-02 03:02:08 +08:00
demo_distfiles = Makefile.in Makefile.am README acinclude.m4 aclocal.m4 \
1997-04-02 02:49:25 +08:00
configure configure.in foo.c foo.h hello.c main.c \
run.test
1997-04-02 02:29:23 +08:00
# These are required by libtoolize.
pkgdata_SCRIPTS = config.guess config.sub ltconfig
pkgdata_DATA = ltmain.sh
1997-04-02 02:57:49 +08:00
# This macro file should be visible to Automake's aclocal.
1997-04-02 02:29:23 +08:00
aclocaldir = @aclocaldir@
aclocal_DATA = libtool.m4
# The standalone libtool script, and the libtool distributor.
bin_SCRIPTS = libtool libtoolize
libtool: ltconfig
1997-04-02 02:49:25 +08:00
@echo 'WARNING: Warnings from ltconfig can be ignored. :-)'
1997-04-02 02:46:48 +08:00
$(srcdir)/ltconfig --srcdir=$(srcdir) $(pkgdatadir)/ltmain.sh
1997-04-02 02:29:23 +08:00
1997-04-02 02:49:25 +08:00
# These depend on configure.in for version numbers.
libtoolize: libtoolize.in configure.in
1997-04-02 02:29:23 +08:00
CONFIG_FILES=libtoolize CONFIG_HEADERS= $(top_builddir)/config.status
chmod +x libtoolize
1997-04-02 02:49:25 +08:00
$(srcdir)/ltconfig: ltconfig.in configure.in
1997-04-02 02:29:23 +08:00
CONFIG_FILES=ltconfig CONFIG_HEADERS= $(top_builddir)/config.status
chmod +x ltconfig
1997-04-02 02:49:25 +08:00
$(srcdir)/ltmain.sh: ltmain.sh.in configure.in
1997-04-02 02:29:23 +08:00
CONFIG_FILES=ltmain.sh CONFIG_HEADERS= $(top_builddir)/config.status
# Distribute the demo subdirectory.
dist-hook:
mkdir $(distdir)/demo
1997-04-02 02:49:25 +08:00
-chmod 755 $(distdir)/demo
here=`pwd`; distdir=`cd $(distdir) && pwd` \
&& cd $(srcdir)/demo \
&& automake --include-deps --build-dir=$$here/demo --srcdir-name=$(srcdir)/demo --output-dir=$$distdir/demo
1997-04-02 02:29:23 +08:00
@for file in $(demo_distfiles); do \
d=$(srcdir)/demo; \
test -f $(distdir)/demo/$$file \
|| ln $$d/$$file $(distdir)/demo/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/demo/$$file; \
done