1## Makefile for the autoconf-lib-link directory of GNU gettext
2## Copyright (C) 1995-1999, 2000-2003, 2005 Free Software Foundation, Inc.
3##
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2, or (at your option)
7## any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software Foundation,
16## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
18## Process this file with automake to produce Makefile.in.
19
20AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
21ACLOCAL_AMFLAGS = -I m4 -I ../m4
22EXTRA_DIST =
23DISTCLEANFILES =
24
25SUBDIRS = m4 tests
26
27EXTRA_DIST += config.rpath
28
29
30# We want to maintain only one copy of config.rpath. The one in this directory
31# is the source.
32
33all-local: $(srcdir)/../build-aux/config.rpath
34
35$(srcdir)/../build-aux/config.rpath: $(srcdir)/config.rpath
36	cp $(srcdir)/config.rpath $(srcdir)/../build-aux/config.rpath
37
38
39# The AC_CONFIG_AUX_DIR argument in the tests/rpath*/configure.ac files is
40# interpreted in two different contexts:
41#   1. at "make distrib" time, when we call automake, relative to
42#      SRCDIR/tests/rpath*/,
43#   2. at "make check" time, when the directory is copied and configured,
44#      relative to BUILDDIR/tests/tstdir/rp-*/.
45# We choose this argument to be '../../../build-aux', for case 1, and therefore
46# we need to make a local copy of the build-aux directory, for case 2.
47
48all-local: build-aux/config.guess build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh build-aux/missing build-aux/config.rpath
49
50build-aux-dir:
51	test -d build-aux || mkdir build-aux
52	touch build-aux-dir
53
54build-aux/config.guess: $(srcdir)/../build-aux/config.guess build-aux-dir
55	cp $(srcdir)/../build-aux/config.guess build-aux/config.guess
56
57build-aux/config.sub: $(srcdir)/../build-aux/config.sub build-aux-dir
58	cp $(srcdir)/../build-aux/config.sub build-aux/config.sub
59
60build-aux/install-sh: $(srcdir)/../build-aux/install-sh build-aux-dir
61	cp $(srcdir)/../build-aux/install-sh build-aux/install-sh
62
63build-aux/ltmain.sh: $(srcdir)/../build-aux/ltmain.sh build-aux-dir
64	cp $(srcdir)/../build-aux/ltmain.sh build-aux/ltmain.sh
65
66build-aux/missing: $(srcdir)/../build-aux/missing build-aux-dir
67	cp $(srcdir)/../build-aux/missing build-aux/missing
68
69build-aux/config.rpath: $(srcdir)/config.rpath build-aux-dir
70	cp $(srcdir)/config.rpath build-aux/config.rpath
71
72DISTCLEANFILES += build-aux/config.guess build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh build-aux/missing build-aux/config.rpath
73
74distclean-local:
75	rm -rf build-aux build-aux-dir
76
77
78# Subdirectories with separate autoconfiguration.
79
80CONFIGURES_RPATHX = $(srcdir)/tests/rpathx/Makefile.in $(srcdir)/tests/rpathx/aclocal.m4 $(srcdir)/tests/rpathx/configure
81$(srcdir)/tests/rpathx/Makefile.in: $(srcdir)/tests/rpathx/Makefile.am $(srcdir)/tests/rpathx/configure.ac $(srcdir)/tests/rpathx/aclocal.m4
82	cd $(srcdir)/tests/rpathx && automake Makefile
83$(srcdir)/tests/rpathx/aclocal.m4: $(srcdir)/tests/rpathx/configure.ac $(srcdir)/../m4/libtool.m4
84	cd $(srcdir)/tests/rpathx && aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd`
85$(srcdir)/tests/rpathx/configure: $(srcdir)/tests/rpathx/configure.ac $(srcdir)/tests/rpathx/aclocal.m4
86	cd $(srcdir)/tests/rpathx && autoconf
87
88CONFIGURES_RPATHY = $(srcdir)/tests/rpathy/Makefile.in $(srcdir)/tests/rpathy/aclocal.m4 $(srcdir)/tests/rpathy/configure
89$(srcdir)/tests/rpathy/Makefile.in: $(srcdir)/tests/rpathy/Makefile.am $(srcdir)/tests/rpathy/configure.ac $(srcdir)/tests/rpathy/aclocal.m4
90	cd $(srcdir)/tests/rpathy && automake Makefile
91$(srcdir)/tests/rpathy/aclocal.m4: $(srcdir)/tests/rpathy/configure.ac $(srcdir)/../m4/libtool.m4 $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4
92	cd $(srcdir)/tests/rpathy && aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd`
93$(srcdir)/tests/rpathy/configure: $(srcdir)/tests/rpathy/configure.ac $(srcdir)/tests/rpathy/aclocal.m4
94	cd $(srcdir)/tests/rpathy && autoconf
95
96CONFIGURES_RPATHZ = $(srcdir)/tests/rpathz/Makefile.in $(srcdir)/tests/rpathz/aclocal.m4 $(srcdir)/tests/rpathz/configure
97$(srcdir)/tests/rpathz/Makefile.in: $(srcdir)/tests/rpathz/Makefile.am $(srcdir)/tests/rpathz/configure.ac $(srcdir)/tests/rpathz/aclocal.m4
98	cd $(srcdir)/tests/rpathz && automake Makefile
99$(srcdir)/tests/rpathz/aclocal.m4: $(srcdir)/tests/rpathz/configure.ac $(srcdir)/../m4/libtool.m4 $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4
100	cd $(srcdir)/tests/rpathz && aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd`
101$(srcdir)/tests/rpathz/configure: $(srcdir)/tests/rpathz/configure.ac $(srcdir)/tests/rpathz/aclocal.m4
102	cd $(srcdir)/tests/rpathz && autoconf
103
104CONFIGURES_RPATHLX = $(srcdir)/tests/rpathlx/Makefile.in $(srcdir)/tests/rpathlx/aclocal.m4 $(srcdir)/tests/rpathlx/configure
105$(srcdir)/tests/rpathlx/Makefile.in: $(srcdir)/tests/rpathlx/Makefile.am $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/tests/rpathlx/aclocal.m4
106	cd $(srcdir)/tests/rpathlx && automake Makefile
107$(srcdir)/tests/rpathlx/aclocal.m4: $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4
108	cd $(srcdir)/tests/rpathlx && aclocal -I `cd ../../m4 && pwd`
109$(srcdir)/tests/rpathlx/configure: $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/tests/rpathlx/aclocal.m4
110	cd $(srcdir)/tests/rpathlx && autoconf
111
112CONFIGURES_RPATHLY = $(srcdir)/tests/rpathly/Makefile.in $(srcdir)/tests/rpathly/aclocal.m4 $(srcdir)/tests/rpathly/configure
113$(srcdir)/tests/rpathly/Makefile.in: $(srcdir)/tests/rpathly/Makefile.am $(srcdir)/tests/rpathly/configure.ac $(srcdir)/tests/rpathly/aclocal.m4
114	cd $(srcdir)/tests/rpathly && automake Makefile
115$(srcdir)/tests/rpathly/aclocal.m4: $(srcdir)/tests/rpathly/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4
116	cd $(srcdir)/tests/rpathly && aclocal -I `cd ../../m4 && pwd`
117$(srcdir)/tests/rpathly/configure: $(srcdir)/tests/rpathly/configure.ac $(srcdir)/tests/rpathly/aclocal.m4
118	cd $(srcdir)/tests/rpathly && autoconf
119
120CONFIGURES_RPATHLYX = $(srcdir)/tests/rpathlyx/Makefile.in $(srcdir)/tests/rpathlyx/aclocal.m4 $(srcdir)/tests/rpathlyx/configure
121$(srcdir)/tests/rpathlyx/Makefile.in: $(srcdir)/tests/rpathlyx/Makefile.am $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/tests/rpathlyx/aclocal.m4
122	cd $(srcdir)/tests/rpathlyx && automake Makefile
123$(srcdir)/tests/rpathlyx/aclocal.m4: $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4
124	cd $(srcdir)/tests/rpathlyx && aclocal -I `cd ../../m4 && pwd`
125$(srcdir)/tests/rpathlyx/configure: $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/tests/rpathlyx/aclocal.m4
126	cd $(srcdir)/tests/rpathlyx && autoconf
127
128CONFIGURES_RPATHLZ = $(srcdir)/tests/rpathlz/Makefile.in $(srcdir)/tests/rpathlz/aclocal.m4 $(srcdir)/tests/rpathlz/configure
129$(srcdir)/tests/rpathlz/Makefile.in: $(srcdir)/tests/rpathlz/Makefile.am $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/tests/rpathlz/aclocal.m4
130	cd $(srcdir)/tests/rpathlz && automake Makefile
131$(srcdir)/tests/rpathlz/aclocal.m4: $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4
132	cd $(srcdir)/tests/rpathlz && aclocal -I `cd ../../m4 && pwd`
133$(srcdir)/tests/rpathlz/configure: $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/tests/rpathlz/aclocal.m4
134	cd $(srcdir)/tests/rpathlz && autoconf
135
136CONFIGURES_RPATHLZYX = $(srcdir)/tests/rpathlzyx/Makefile.in $(srcdir)/tests/rpathlzyx/aclocal.m4 $(srcdir)/tests/rpathlzyx/configure
137$(srcdir)/tests/rpathlzyx/Makefile.in: $(srcdir)/tests/rpathlzyx/Makefile.am $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/tests/rpathlzyx/aclocal.m4
138	cd $(srcdir)/tests/rpathlzyx && automake Makefile
139$(srcdir)/tests/rpathlzyx/aclocal.m4: $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4
140	cd $(srcdir)/tests/rpathlzyx && aclocal -I `cd ../../m4 && pwd`
141$(srcdir)/tests/rpathlzyx/configure: $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/tests/rpathlzyx/aclocal.m4
142	cd $(srcdir)/tests/rpathlzyx && autoconf
143
144SUBCONFIGURES = $(CONFIGURES_RPATHX) $(CONFIGURES_RPATHY) $(CONFIGURES_RPATHZ) $(CONFIGURES_RPATHLX) $(CONFIGURES_RPATHLY) $(CONFIGURES_RPATHLYX) $(CONFIGURES_RPATHLZ) $(CONFIGURES_RPATHLZYX)
145
146subconfigures: $(SUBCONFIGURES)
147
148# Hidden from automake, but really activated. Works around an automake-1.5 bug.
149#distdir: subconfigures
150