24 |
|
|
25 |
ACLOCAL_AMFLAGS = -I m4 |
ACLOCAL_AMFLAGS = -I m4 |
26 |
|
|
27 |
|
BUILD_SUBDIRS = . libltdl |
28 |
|
SUBDIRS = $(BUILD_SUBDIRS) |
29 |
|
DIST_SUBDIRS = $(BUILD_SUBDIRS) |
30 |
|
EXTRA_DIST = |
31 |
|
|
32 |
|
|
33 |
|
## ---------------- ## |
34 |
|
## Libtool scripts. ## |
35 |
|
## ---------------- ## |
36 |
|
|
37 |
|
# The libtool distributor and the standalone libtool script. |
38 |
|
bin_SCRIPTS = libtoolize libtool |
39 |
|
|
40 |
|
libtoolize: $(srcdir)/libtoolize.in |
41 |
|
rm -f libtoolize.tmp libtoolize |
42 |
|
$(timestamp); \ |
43 |
|
input="libtoolize.m4sh"; \ |
44 |
|
$(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \ |
45 |
|
-e 's,@nobase_pkgvdata_DATA\@,$(nobase_pkgvdata_DATA),g' \ |
46 |
|
-e "s,@pkgvltdl_files\@,`echo $(ltdldatafiles)`,g" \ |
47 |
|
$(srcdir)/libtoolize.in > libtoolize.tmp |
48 |
|
chmod a+x libtoolize.tmp |
49 |
|
chmod a-w libtoolize.tmp |
50 |
|
mv -f libtoolize.tmp libtoolize |
51 |
|
|
52 |
|
# Use `$(srcdir)' for the benefit of non-GNU makes: this is |
53 |
|
# how libtoolize.in appears in our dependencies. |
54 |
|
EXTRA_DIST += libtoolize.m4sh |
55 |
|
$(srcdir)/libtoolize.in: $(sh_files) libtoolize.m4sh Makefile.am |
56 |
|
cd $(srcdir); \ |
57 |
|
rm -f libtoolize.in; \ |
58 |
|
$(M4SH) -B ./config libtoolize.m4sh > libtoolize.in |
59 |
|
|
60 |
|
libtool: $(top_builddir)/config.status $(srcdir)/config/ltmain.sh \ |
61 |
|
$(srcdir)/stamp-vcl |
62 |
|
cd $(top_builddir) && $(SHELL) ./config.status $@ |
63 |
|
|
64 |
|
.PHONY: configure-subdirs |
65 |
|
configure-subdirs distdir: $(DIST_MAKEFILE_LIST) |
66 |
|
@DIST_MAKEFILE_LIST@: |
67 |
|
dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \ |
68 |
|
test -d $$dir || mkdir $$dir || exit 1; \ |
69 |
|
abs_srcdir=`cd $(srcdir) && pwd`; \ |
70 |
|
(cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1 |
71 |
|
|
72 |
|
|
73 |
|
# ---------- # |
74 |
|
# Bootstrap. # |
75 |
|
# ---------- # |
76 |
|
|
77 |
edit = sed \ |
edit = sed \ |
78 |
-e 's,@EGREP\@,$(EGREP),g' \ |
-e 's,@EGREP\@,$(EGREP),g' \ |
79 |
-e 's,@FGREP\@,$(FGREP),g' \ |
-e 's,@FGREP\@,$(FGREP),g' \ |
95 |
-e 's,@prefix\@,$(prefix),g' \ |
-e 's,@prefix\@,$(prefix),g' \ |
96 |
-e "s,@configure_input\@,Generated from $$input; do not edit by hand,g" |
-e "s,@configure_input\@,Generated from $$input; do not edit by hand,g" |
97 |
|
|
98 |
timestamp = set dummy `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; shift; \ |
timestamp = set dummy `$(MKSTAMP) < $(srcdir)/ChangeLog`; shift; \ |
99 |
case $(VERSION) in \ |
case $(VERSION) in \ |
100 |
*[acegikmoqsuwy]) TIMESTAMP=" $$1 $$2 $$3" ;; \ |
*[acegikmoqsuwy]) TIMESTAMP=" $$1 $$2 $$3" ;; \ |
101 |
*) TIMESTAMP="" ;; \ |
*) TIMESTAMP="" ;; \ |
102 |
esac |
esac |
103 |
|
|
104 |
BUILD_SUBDIRS = . libltdl doc tests |
sh_files = config/general.m4sh config/getopt.m4sh |
105 |
SUBDIRS = $(BUILD_SUBDIRS) |
EXTRA_DIST += bootstrap libtoolize.in config/ltmain.m4sh config/mkstamp \ |
106 |
DIST_SUBDIRS = $(BUILD_SUBDIRS) |
$(sh_files) stamp-vcl ChangeLog.1996 ChangeLog.1997 \ |
107 |
|
ChangeLog.1998 ChangeLog.1999 ChangeLog.2000 ChangeLog.2001 \ |
108 |
sh_files = config/general.m4sh config/getopt.m4sh |
ChangeLog.2002 ChangeLog.2003 |
109 |
EXTRA_DIST = bootstrap libtoolize.in config/ltmain.m4sh config/mkstamp \ |
CLEANFILES = libtool libtoolize \ |
110 |
$(sh_files) stamp-vcl ChangeLog.1996 ChangeLog.1997 ChangeLog.1998 \ |
libtoolize.tmp config/ltmain.tmp m4/ltversion.tmp |
111 |
ChangeLog.1999 ChangeLog.2000 ChangeLog.2001 ChangeLog.2002 \ |
DISTCLEANFILES = |
|
ChangeLog.2003 |
|
|
CLEANFILES = libtool libtoolize \ |
|
|
libtoolize.tmp config/ltmain.tmp m4/ltversion.tmp |
|
|
|
|
|
## This properly belongs in tests/Makefile.am, but then we would have |
|
|
## to pass $(edit) to the submake or, worse, keep two copies of $(edit) |
|
|
## in synch, so instead we just build it from this Makefile.am: |
|
|
.PHONY: update-package-m4 |
|
|
update-package-m4: $(top_srcdir)/tests/package.m4 |
|
|
$(top_srcdir)/tests/package.m4: $(top_srcdir)/configure.ac |
|
|
cd $(top_srcdir); \ |
|
|
{ \ |
|
|
echo '# Signature of the current package.'; \ |
|
|
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ |
|
|
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \ |
|
|
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ |
|
|
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ |
|
|
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ |
|
|
} | $(edit) > tests/package.m4 |
|
112 |
|
|
113 |
# These are required by libtoolize and must be executable when installed. |
# These are required by libtoolize and must be executable when installed. |
114 |
# Since _SCRIPTS gets the program transform applied we make them |
# Since _SCRIPTS gets the program transform applied we make them |
121 |
nobase_pkgvdata_DATA = m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 \ |
nobase_pkgvdata_DATA = m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 \ |
122 |
m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 |
m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 |
123 |
|
|
124 |
## We know that $(top_srcdir)/ChangeLog has been edited if stamp-vcl |
## We know that $(srcdir)/ChangeLog has been edited if stamp-vcl |
125 |
## needs updating, so we assume we have write access to $(top_srcdir). |
## needs updating, so we assume we have write access to $(srcdir). |
126 |
## If we try to maintain ./stamp-vcl to avoid writing to a possibly |
## If we try to maintain ./stamp-vcl to avoid writing to a possibly |
127 |
## read-only $(top_srcdir), then when the two stamp-vcls differ, distcheck |
## read-only $(srcdir), then when the two stamp-vcls differ, distcheck |
128 |
## will try to update the one in the read-only source tree it makes. |
## will try to update the one in the read-only source tree it makes. |
129 |
MKSTAMP = $(SHELL) $(top_srcdir)/config/mkstamp |
MKSTAMP = $(SHELL) $(srcdir)/config/mkstamp |
130 |
$(top_srcdir)/stamp-vcl: vcl-tmp clean-ltmain-sh ChangeLog |
$(srcdir)/stamp-vcl: vcl-tmp clean-ltmain-sh ChangeLog |
131 |
vcl-tmp: |
vcl-tmp: |
132 |
@set dummy `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; shift; \ |
@set dummy `$(MKSTAMP) < $(srcdir)/ChangeLog`; shift; \ |
133 |
echo "$$1" > vcl.tmp; \ |
echo "$$1" > vcl.tmp; \ |
134 |
cmp -s vcl.tmp $(top_srcdir)/stamp-vcl \ |
cmp -s vcl.tmp $(srcdir)/stamp-vcl \ |
135 |
|| (echo "Updating stamp-vcl"; cp vcl.tmp $(top_srcdir)/stamp-vcl) |
|| (echo "Updating stamp-vcl"; cp vcl.tmp $(srcdir)/stamp-vcl) |
136 |
-@rm -f vcl.tmp |
-@rm -f vcl.tmp |
137 |
|
|
138 |
## We used to build ltmain.sh in the build tree, but now it is created |
## We used to build ltmain.sh in the build tree, but now it is created |
140 |
## previous builds left behind in the build tree, that would override the |
## previous builds left behind in the build tree, that would override the |
141 |
## source tree version in current builds. |
## source tree version in current builds. |
142 |
clean-ltmain-sh: |
clean-ltmain-sh: |
143 |
@-test "$(top_srcdir)" = "$(top_builddir)" || \ |
@-test "$(srcdir)" = "$(top_builddir)" || \ |
144 |
rm -f "$(top_builddir)/config/ltmain.sh" |
rm -f "$(top_builddir)/config/ltmain.sh" |
145 |
|
|
146 |
# We build ltversion.m4 here, instead of from config.status, |
# We build ltversion.m4 here, instead of from config.status, |
148 |
# dependencies change and ltversion.m4 happens to be a configure |
# dependencies change and ltversion.m4 happens to be a configure |
149 |
# dependency. configure and ltversion.m4 would be rebuilt in |
# dependency. configure and ltversion.m4 would be rebuilt in |
150 |
# a loop otherwise. |
# a loop otherwise. |
151 |
# Use `$(top_srcdir)/m4' for the benefit of non-GNU makes: this is |
# Use `$(srcdir)/m4' for the benefit of non-GNU makes: this is |
152 |
# how ltversion.m4 appears in our dependencies. |
# how ltversion.m4 appears in our dependencies. |
153 |
EXTRA_DIST += m4/ltversion.in m4/ltversion.m4 |
EXTRA_DIST += m4/ltversion.in m4/ltversion.m4 |
154 |
$(top_srcdir)/m4/ltversion.m4: m4/ltversion.in configure.ac $(top_srcdir)/stamp-vcl |
$(srcdir)/m4/ltversion.m4: m4/ltversion.in configure.ac $(srcdir)/stamp-vcl |
155 |
set dummy `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; shift; \ |
set dummy `$(MKSTAMP) < $(srcdir)/ChangeLog`; shift; \ |
156 |
cd $(top_srcdir); \ |
cd $(srcdir); \ |
157 |
rm -f m4/ltversion.tmp; \ |
rm -f m4/ltversion.tmp; \ |
158 |
serial=`echo $$1 | sed 's,^1[.],,g'`; \ |
serial=`echo $$1 | sed 's,^1[.],,g'`; \ |
159 |
input="ltversion.in"; \ |
input="ltversion.in"; \ |
165 |
|
|
166 |
## And for similar reasons, ltmain.sh can't be built from config.status. |
## And for similar reasons, ltmain.sh can't be built from config.status. |
167 |
## !WARNING! If you edit this rule to change the contents of ltmain.sh, |
## !WARNING! If you edit this rule to change the contents of ltmain.sh, |
168 |
## you must `touch $(top_srcdir)/config/ltmain.in' from the |
## you must `touch $(srcdir)/config/ltmain.in' from the |
169 |
## shell if you need ltmain.sh to be regenerated. Ideally, we |
## shell if you need ltmain.sh to be regenerated. Ideally, we |
170 |
## should make this rule depend on Makefile but that will break |
## should make this rule depend on Makefile but that will break |
171 |
## distcheck (at least) by rebuilding ltmain.sh in the source |
## distcheck (at least) by rebuilding ltmain.sh in the source |
172 |
## tree whenever config.status regenerates the Makefile. |
## tree whenever config.status regenerates the Makefile. |
173 |
EXTRA_DIST += config/ltmain.sh |
EXTRA_DIST += config/ltmain.sh |
174 |
$(top_srcdir)/config/ltmain.sh: $(sh_files) config/ltmain.m4sh configure.ac \ |
$(srcdir)/config/ltmain.sh: $(sh_files) config/ltmain.m4sh configure.ac \ |
175 |
$(top_srcdir)/stamp-vcl |
$(srcdir)/stamp-vcl |
176 |
$(timestamp); \ |
$(timestamp); \ |
177 |
cd $(top_srcdir); \ |
cd $(srcdir); \ |
178 |
rm -f config/ltmain.in config/ltmain.tmp config/ltmain.sh; \ |
rm -f config/ltmain.in config/ltmain.tmp config/ltmain.sh; \ |
179 |
$(M4SH) -B ./config config/ltmain.m4sh > config/ltmain.in; \ |
$(M4SH) -B ./config config/ltmain.m4sh > config/ltmain.in; \ |
180 |
input="ltmain.m4sh"; \ |
input="ltmain.m4sh"; \ |
185 |
chmod a-w config/ltmain.tmp; \ |
chmod a-w config/ltmain.tmp; \ |
186 |
mv -f config/ltmain.tmp config/ltmain.sh |
mv -f config/ltmain.tmp config/ltmain.sh |
187 |
|
|
|
# The libtool distributor and the standalone libtool script. |
|
|
bin_SCRIPTS = libtoolize libtool |
|
|
|
|
|
libtoolize: $(top_srcdir)/libtoolize.in |
|
|
rm -f libtoolize.tmp libtoolize |
|
|
$(timestamp); \ |
|
|
input="libtoolize.m4sh"; \ |
|
|
$(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \ |
|
|
-e 's,@nobase_pkgvdata_DATA\@,$(nobase_pkgvdata_DATA),g' \ |
|
|
-e "s,@pkgvltdl_files\@,`echo $(ltdldatafiles)`,g" \ |
|
|
$(top_srcdir)/libtoolize.in > libtoolize.tmp |
|
|
chmod a+x libtoolize.tmp |
|
|
chmod a-w libtoolize.tmp |
|
|
mv -f libtoolize.tmp libtoolize |
|
188 |
|
|
189 |
# Use `$(top_srcdir)' for the benefit of non-GNU makes: this is |
## -------------- ## |
190 |
# how libtoolize.in appears in our dependencies. |
## Documentation. ## |
191 |
EXTRA_DIST += libtoolize.m4sh |
## -------------- ## |
|
$(top_srcdir)/libtoolize.in: $(sh_files) libtoolize.m4sh Makefile.am |
|
|
cd $(top_srcdir); \ |
|
|
rm -f libtoolize.in; \ |
|
|
$(M4SH) -B ./config libtoolize.m4sh > libtoolize.in |
|
192 |
|
|
193 |
# The defs script shouldn't be recreated whenever the Makefile is |
info_TEXINFOS = doc/libtool.texi |
194 |
# regenerated since the source tree can be read-only. |
libtool_TEXINFOS = doc/PLATFORMS doc/fdl.texi doc/notes.texi |
195 |
check-recursive: tests/defs $(top_srcdir)/tests/testsuite |
EXTRA_DIST += doc/notes.txt $(libtool_TEXINFOS) |
|
tests/defs: $(top_srcdir)/tests/defs.in |
|
|
rm -f tests/defs.tmp tests/defs; \ |
|
|
input="defs.m4sh"; \ |
|
|
$(edit) $(top_srcdir)/tests/defs.in > tests/defs.tmp; \ |
|
|
mv -f tests/defs.tmp tests/defs |
|
196 |
|
|
197 |
# Use `$(top_srcdir)/tests' for the benefit of non-GNU makes: this is |
all-local: $(srcdir)/doc/notes.txt |
|
# how defs.in appears in our dependencies. |
|
|
# No need to EXTRA_DIST defs.m4sh here, that is handled in tests/Makefile.am. |
|
|
$(top_srcdir)/tests/defs.in: config/general.m4sh tests/defs.m4sh Makefile.am |
|
|
cd $(top_srcdir); \ |
|
|
rm -f tests/defs.in; \ |
|
|
$(M4SH) -B ./config tests/defs.m4sh > tests/defs.in |
|
198 |
|
|
199 |
$(top_srcdir)/tests/testsuite: |
$(srcdir)/doc/notes.txt: $(srcdir)/doc/notes.texi |
200 |
cd tests; \ |
cd $(srcdir)/doc && \ |
201 |
$(MAKE) $(AM_MAKEFLAGS) testsuite |
$(MAKEINFO) --plaintext $(MAKEINFOFLAGS) -o notes.txt notes.texi |
202 |
|
|
|
# Automake doesn't want us to generate distributed files from config.status, |
|
|
# but the alternative (see libtool-1.4.3) was even uglier! |
|
|
libtool: $(top_builddir)/config.status $(top_srcdir)/config/ltmain.sh \ |
|
|
$(top_srcdir)/stamp-vcl |
|
|
cd $(top_builddir) && $(SHELL) ./config.status $@ |
|
203 |
|
|
204 |
.PHONY: configure-subdirs |
## ------------- ## |
205 |
configure-subdirs distdir: $(DIST_MAKEFILE_LIST) |
## Installation. ## |
206 |
@DIST_MAKEFILE_LIST@: |
## ------------- ## |
|
dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \ |
|
|
test -d $$dir || mkdir $$dir || exit 1; \ |
|
|
abs_srcdir=`cd $(top_srcdir) && pwd`; \ |
|
|
(cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1 |
|
207 |
|
|
208 |
## These are installed as a subdirectory of pkgdatadir so that |
## These are installed as a subdirectory of pkgdatadir so that |
209 |
## libtoolize --ltdl can find them later: |
## libtoolize --ltdl can find them later: |
255 |
chmod +x $(DESTDIR)$(pkgvdatadir)/config/config.sub |
chmod +x $(DESTDIR)$(pkgvdatadir)/config/config.sub |
256 |
chmod +x $(DESTDIR)$(pkgvdatadir)/config/install-sh |
chmod +x $(DESTDIR)$(pkgvdatadir)/config/install-sh |
257 |
|
|
258 |
|
|
259 |
|
## ------------- ## |
260 |
|
## Distribution. ## |
261 |
|
## ------------- ## |
262 |
|
|
263 |
## Make versioned links. We only run the transform on the root name; |
## Make versioned links. We only run the transform on the root name; |
264 |
## then we make a versioned link with the transformed base name. This |
## then we make a versioned link with the transformed base name. This |
265 |
## seemed like the most reasonable approach. |
## seemed like the most reasonable approach. |
279 |
fv="$$f-$(APIVERSION)"; \ |
fv="$$f-$(APIVERSION)"; \ |
280 |
rm -f $(DESTDIR)$(bindir)/$$fv; \ |
rm -f $(DESTDIR)$(bindir)/$$fv; \ |
281 |
done |
done |
282 |
|
@for f in $(ltdldatafiles); do \ |
283 |
|
echo " rm -rf '$(DESTDIR)$(ltdldatadir)/$$f'"; \ |
284 |
|
rm -f "$(DESTDIR)$(ltdldatadir)/$$f"; \ |
285 |
|
done |
286 |
|
|
287 |
|
|
288 |
## Ship README.alpha only in alpha release, but renamed to README |
## Ship README.alpha only in alpha release, but renamed to README |
289 |
dist-hook: |
dist-hook: |
292 |
*[a-z]) mv $(distdir)/README.alpha $(distdir)/README ;; \ |
*[a-z]) mv $(distdir)/README.alpha $(distdir)/README ;; \ |
293 |
*) rm -f $(distdir)/README.alpha ;; \ |
*) rm -f $(distdir)/README.alpha ;; \ |
294 |
esac |
esac |
295 |
|
|
296 |
|
|
297 |
|
## ----------- ## |
298 |
|
## Test suite. ## |
299 |
|
## ----------- ## |
300 |
|
|
301 |
|
TESTSUITE = tests/testsuite |
302 |
|
TESTSUITE_AT = tests/testsuite.at \ |
303 |
|
tests/am-subdir.at \ |
304 |
|
tests/functests.at \ |
305 |
|
tests/inherited_flags.at \ |
306 |
|
tests/libtoolize.at \ |
307 |
|
tests/stresstest.at \ |
308 |
|
tests/template.at |
309 |
|
|
310 |
|
EXTRA_DIST += $(TESTSUITE) $(TESTSUITE_AT) tests/package.m4 |
311 |
|
|
312 |
|
# Be sure to reexport important environment variables: |
313 |
|
TESTS_ENVIRONMENT = MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS)" \ |
314 |
|
CPP="$(CPP)" CPPFLAGS="$(CPPFLAGS)" LD="$(LD)" LDFLAGS="$(LDFLAGS)" \ |
315 |
|
LIBS="$(LIBS)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \ |
316 |
|
OBJEXT="$(OBJEXT)" EXEEXT="$(EXEEXT)" CONFIG_SHELL="$(SHELL)" \ |
317 |
|
CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" CXXCPP="$(CXXCPP)" \ |
318 |
|
F77="$(F77)" FFLAGS="$(FFLAGS)" |
319 |
|
|
320 |
|
check-recursive: $(srcdir)/$(TESTSUITE) |
321 |
|
|
322 |
|
# Use `$(srcdir)' for the benefit of non-GNU makes: this is |
323 |
|
# how `testsuite' appears in our dependencies. |
324 |
|
$(srcdir)/$(TESTSUITE): tests/package.m4 $(TESTSUITE_AT) |
325 |
|
cd $(srcdir)/tests; \ |
326 |
|
$(AUTOTEST) testsuite.at -o testsuite |
327 |
|
|
328 |
|
$(srcdir)/tests/package.m4: $(srcdir)/configure.ac |
329 |
|
{ \ |
330 |
|
echo '# Signature of the current package.'; \ |
331 |
|
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ |
332 |
|
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \ |
333 |
|
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ |
334 |
|
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ |
335 |
|
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ |
336 |
|
} | $(edit) > $(srcdir)/tests/package.m4 |
337 |
|
|
338 |
|
tests/atconfig: config.status |
339 |
|
$(SHELL) ./config.status tests/atconfig |
340 |
|
DISTCLEANFILES += tests/atconfig |
341 |
|
|
342 |
|
# Hook the test suite into the check rule |
343 |
|
check-local: tests/atconfig $(srcdir)/$(TESTSUITE) |
344 |
|
abs_srcdir=`cd $(srcdir); pwd`; \ |
345 |
|
cd tests; \ |
346 |
|
$(TESTS_ENVIRONMENT) $(SHELL) $$abs_srcdir/$(TESTSUITE) $(TESTSUITE_FLAGS) |
347 |
|
|
348 |
|
# Run the test suite on the *installed* tree. |
349 |
|
installcheck-local: |
350 |
|
abs_srcdir=`cd $(srcdir); pwd`; \ |
351 |
|
cd tests; \ |
352 |
|
$(TESTS_ENVIRONMENT) $(SHELL) $$abs_srcdir/$(TESTSUITE) $(TESTSUITE_FLAGS) AUTOTEST_PATH=$(exec_prefix)/bin |
353 |
|
|
354 |
|
# We need to remove any file droppings left behind by testsuite |
355 |
|
clean-local: clean-local-legacy |
356 |
|
-abs_srcdir=`cd $(srcdir); pwd`; \ |
357 |
|
cd tests; \ |
358 |
|
test -f $$abs_srcdir/$(TESTSUITE) && \ |
359 |
|
$(SHELL) $$abs_srcdir/$(TESTSUITE) --clean |
360 |
|
|
361 |
|
|
362 |
|
## ------------- ## |
363 |
|
## Legacy tests. ## |
364 |
|
## ------------- ## |
365 |
|
|
366 |
|
# !WARNING! Don't add any new tests here, we are migrating to an |
367 |
|
# Autotest driven framework, please add new test cases |
368 |
|
# using the new framework above. When the migration is |
369 |
|
# complete this section should be removed. |
370 |
|
|
371 |
|
CXX_TESTS = \ |
372 |
|
tests/tagdemo-static.test tests/tagdemo-make.test \ |
373 |
|
tests/tagdemo-exec.test tests/tagdemo-conf.test \ |
374 |
|
tests/tagdemo-make.test tests/tagdemo-exec.test \ |
375 |
|
tests/tagdemo-shared.test tests/tagdemo-make.test \ |
376 |
|
tests/tagdemo-exec.test tests/tagdemo-undef.test \ |
377 |
|
tests/tagdemo-make.test tests/tagdemo-exec.test |
378 |
|
|
379 |
|
F77_TESTS = \ |
380 |
|
tests/f77demo-static.test tests/f77demo-make.test \ |
381 |
|
tests/f77demo-exec.test tests/f77demo-conf.test \ |
382 |
|
tests/f77demo-make.test tests/f77demo-exec.test \ |
383 |
|
tests/f77demo-shared.test tests/f77demo-make.test \ |
384 |
|
tests/f77demo-exec.test |
385 |
|
|
386 |
|
COMMON_TESTS = \ |
387 |
|
tests/link.test tests/link-2.test tests/nomode.test \ |
388 |
|
tests/objectlist.test tests/quote.test tests/sh.test \ |
389 |
|
tests/suffix.test tests/tagtrace.test \ |
390 |
|
tests/cdemo-static.test tests/cdemo-make.test tests/cdemo-exec.test \ |
391 |
|
tests/demo-static.test tests/demo-make.test tests/demo-exec.test \ |
392 |
|
tests/demo-inst.test tests/demo-unst.test \ |
393 |
|
tests/depdemo-static.test tests/depdemo-make.test \ |
394 |
|
tests/depdemo-exec.test tests/depdemo-inst.test \ |
395 |
|
tests/depdemo-unst.test \ |
396 |
|
tests/mdemo-static.test tests/mdemo-make.test tests/mdemo-exec.test \ |
397 |
|
tests/mdemo-inst.test tests/mdemo-unst.test \ |
398 |
|
tests/cdemo-conf.test tests/cdemo-make.test tests/cdemo-exec.test \ |
399 |
|
tests/demo-conf.test tests/demo-make.test tests/demo-exec.test \ |
400 |
|
tests/demo-inst.test tests/demo-unst.test tests/demo-deplibs.test \ |
401 |
|
tests/depdemo-conf.test tests/depdemo-make.test \ |
402 |
|
tests/depdemo-exec.test tests/depdemo-inst.test \ |
403 |
|
tests/depdemo-unst.test \ |
404 |
|
tests/mdemo-conf.test tests/mdemo-make.test tests/mdemo-exec.test \ |
405 |
|
tests/mdemo-inst.test tests/mdemo-unst.test tests/mdemo-dryrun.test \ |
406 |
|
tests/mdemo2-conf.test tests/mdemo2-make.test tests/mdemo2-exec.test \ |
407 |
|
tests/pdemo-conf.test tests/pdemo-make.test tests/pdemo-exec.test \ |
408 |
|
tests/pdemo-inst.test \ |
409 |
|
tests/demo-nofast.test tests/demo-make.test tests/demo-exec.test \ |
410 |
|
tests/demo-inst.test tests/demo-unst.test \ |
411 |
|
tests/depdemo-nofast.test tests/depdemo-make.test \ |
412 |
|
tests/depdemo-exec.test tests/depdemo-inst.test \ |
413 |
|
tests/depdemo-unst.test \ |
414 |
|
tests/demo-pic.test tests/demo-make.test tests/demo-exec.test \ |
415 |
|
tests/demo-nopic.test tests/demo-make.test tests/demo-exec.test \ |
416 |
|
tests/cdemo-shared.test tests/cdemo-make.test tests/cdemo-exec.test \ |
417 |
|
tests/demo-shared.test tests/demo-make.test tests/demo-exec.test \ |
418 |
|
tests/demo-inst.test tests/demo-hardcode.test tests/demo-relink.test \ |
419 |
|
tests/demo-noinst-link.test tests/demo-unst.test \ |
420 |
|
tests/depdemo-shared.test tests/depdemo-make.test \ |
421 |
|
tests/depdemo-exec.test tests/depdemo-inst.test \ |
422 |
|
tests/depdemo-relink.test tests/depdemo-unst.test \ |
423 |
|
tests/mdemo-shared.test tests/mdemo-make.test tests/mdemo-exec.test \ |
424 |
|
tests/mdemo-inst.test tests/mdemo-unst.test \ |
425 |
|
tests/cdemo-undef.test tests/cdemo-make.test tests/cdemo-exec.test |
426 |
|
|
427 |
|
if HAVE_CXX |
428 |
|
if HAVE_F77 |
429 |
|
TESTS = $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS) |
430 |
|
else |
431 |
|
TESTS = $(COMMON_TESTS) $(CXX_TESTS) |
432 |
|
endif |
433 |
|
else |
434 |
|
if HAVE_F77 |
435 |
|
TESTS = $(COMMON_TESTS) $(F77_TESTS) |
436 |
|
else |
437 |
|
TESTS = $(COMMON_TESTS) |
438 |
|
endif |
439 |
|
endif |
440 |
|
|
441 |
|
tests/demo-conf.test: libtool |
442 |
|
|
443 |
|
EXTRA_DIST += tests/defs.in tests/defs.m4sh \ |
444 |
|
$(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS) |
445 |
|
DIST_SUBDIRS += $(CONF_SUBDIRS) |
446 |
|
|
447 |
|
# The defs script shouldn't be recreated whenever the Makefile is |
448 |
|
# regenerated since the source tree can be read-only. |
449 |
|
check-recursive: tests/defs |
450 |
|
tests/defs: $(srcdir)/tests/defs.in |
451 |
|
rm -f tests/defs.tmp tests/defs; \ |
452 |
|
input="defs.m4sh"; \ |
453 |
|
$(edit) $(srcdir)/tests/defs.in > tests/defs.tmp; \ |
454 |
|
mv -f tests/defs.tmp tests/defs |
455 |
|
|
456 |
|
# Use `$(srcdir)/tests' for the benefit of non-GNU makes: this is |
457 |
|
# how defs.in appears in our dependencies. |
458 |
|
$(srcdir)/tests/defs.in: config/general.m4sh tests/defs.m4sh Makefile.am |
459 |
|
cd $(srcdir); \ |
460 |
|
rm -f tests/defs.in; \ |
461 |
|
$(M4SH) -B ./config tests/defs.m4sh > tests/defs.in |
462 |
|
|
463 |
|
# We need to remove any files that the above tests created. |
464 |
|
clean-local-legacy: |
465 |
|
-cd tests; \ |
466 |
|
for dir in cdemo demo depdemo f77demo mdemo mdemo2 pdemo tagdemo; \ |
467 |
|
do \ |
468 |
|
test -f $$dir/Makefile && ( cd $$dir && $(MAKE) distclean; ); \ |
469 |
|
done |
470 |
|
rm -rf _inst |
471 |
|
|
472 |
|
$(TESTS): tests/defs |
473 |
|
DISTCLEANFILES += tests/defs |