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 03:18:28 +08:00
|
|
|
aclocal_macros = libtool.m4 replfunc.m4
|
|
|
|
|
1997-04-02 02:46:48 +08:00
|
|
|
# Distribute ltconfig and ltmain.sh so that the demo directory works.
|
1997-04-02 03:18:28 +08:00
|
|
|
EXTRA_DIST = $(aclocal_macros) 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:18:28 +08:00
|
|
|
demo_distfiles = demo/Makefile.in demo/Makefile.am demo/README \
|
|
|
|
demo/acinclude.m4 demo/aclocal.m4 \
|
|
|
|
demo/configure demo/configure.in demo/foo.c demo/foo.h \
|
|
|
|
demo/hello.c demo/main.c demo/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@
|
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: 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.
|
1997-04-02 03:18:28 +08:00
|
|
|
dist-hook: $(demo_distfiles)
|
1997-04-02 02:29:23 +08:00
|
|
|
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 \
|
1997-04-02 03:18:28 +08:00
|
|
|
d=$(srcdir); \
|
|
|
|
test -f $(distdir)/$$file \
|
|
|
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
|
|
|
|| cp -p $$d/$$file $(distdir)/$$file; \
|
1997-04-02 02:29:23 +08:00
|
|
|
done
|
1997-04-02 03:18:28 +08:00
|
|
|
|
|
|
|
# All our rules should depend on these demo files.
|
|
|
|
all: demo/Makefile.in demo/configure
|
|
|
|
|
|
|
|
# Rules for rebuilding some of the demo source files.
|
|
|
|
$(srcdir)/demo/Makefile.in: demo/Makefile.am demo/configure.in demo/aclocal.m4
|
|
|
|
cd $(srcdir)/demo && automake
|
|
|
|
|
|
|
|
$(srcdir)/demo/configure: demo/configure.in demo/aclocal.m4
|
|
|
|
cd $(srcdir)/demo && autoconf
|
|
|
|
|
|
|
|
$(srcdir)/demo/aclocal.m4: demo/configure.in demo/acinclude.m4
|
|
|
|
cd $(srcdir)/demo && aclocal
|
|
|
|
|
|
|
|
$(srcdir)/demo/acinclude.m4:
|
|
|
|
rm -f $(srcdir)/demo/acinclude.m4
|
|
|
|
ln -s ../libtool.m4 $(srcdir)/demo/acinclude.m4
|