mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
|
## Process Makefile.am with automake to create Makefile.in.
|
||
|
## Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
||
|
AUTOMAKE_OPTIONS = gnits
|
||
|
SUBDIRS = doc
|
||
|
|
||
|
EXTRA_DIST = libtool.m4 libtoolize.in ltconfig.in ltmain.sh.in
|
||
|
CLEANFILES = libtool libtoolize ltconfig ltmain.sh
|
||
|
|
||
|
# Files in the demo subdirectory that go in the distribution.
|
||
|
demo_distfiles = Makefile.in Makefile.am aclocal.m4 configure configure.in \
|
||
|
foo.c foo.h hello.c libinfo main.c
|
||
|
|
||
|
# These are required by libtoolize.
|
||
|
pkgdata_SCRIPTS = config.guess config.sub ltconfig
|
||
|
pkgdata_DATA = ltmain.sh
|
||
|
|
||
|
# This macro files should be visible to Automake's aclocal.
|
||
|
aclocaldir = @aclocaldir@
|
||
|
aclocal_DATA = libtool.m4
|
||
|
|
||
|
# The standalone libtool script, and the libtool distributor.
|
||
|
bin_SCRIPTS = libtool libtoolize
|
||
|
|
||
|
libtool: ltconfig
|
||
|
./ltconfig --srcdir=$(srcdir) $(pkgdatadir)/ltmain.sh
|
||
|
|
||
|
libtoolize: libtoolize.in
|
||
|
CONFIG_FILES=libtoolize CONFIG_HEADERS= $(top_builddir)/config.status
|
||
|
chmod +x libtoolize
|
||
|
|
||
|
ltconfig: ltconfig.in
|
||
|
CONFIG_FILES=ltconfig CONFIG_HEADERS= $(top_builddir)/config.status
|
||
|
chmod +x ltconfig
|
||
|
|
||
|
ltmain.sh: ltmain.sh.in
|
||
|
CONFIG_FILES=ltmain.sh CONFIG_HEADERS= $(top_builddir)/config.status
|
||
|
|
||
|
# Distribute the demo subdirectory.
|
||
|
dist-hook:
|
||
|
mkdir $(distdir)/demo
|
||
|
@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
|