From: Gary V. Vaughan Date: Fri, 15 Apr 2005 10:26:55 +0000 (+0000) Subject: * Makefile.am (lt__cd, CD_TESTDIR): New make macros to work around X-Git-Tag: release-2-1b~673 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25b33e72362bfcf589124a9fc0ff26e08f422116;p=thirdparty%2Flibtool.git * Makefile.am (lt__cd, CD_TESTDIR): New make macros to work around problems with CDPATH in some shells. (check-local, installcheck-local, clean-local): Use them. --- diff --git a/ChangeLog b/ChangeLog index 7f3ab5507..a5ef34890 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-15 Gary V. Vaughan + + * Makefile.am (lt__cd, CD_TESTDIR): New make macros to work around + problems with CDPATH in some shells. + (check-local, installcheck-local, clean-local): Use them. + 2005-04-14 Ralf Wildenhues (tiny change) * bootstrap: Define srcdir for making `commit'. diff --git a/Makefile.am b/Makefile.am index 65c45a4b3..ad68eef73 100644 --- a/Makefile.am +++ b/Makefile.am @@ -340,22 +340,22 @@ tests/atconfig: config.status $(SHELL) ./config.status tests/atconfig DISTCLEANFILES += tests/atconfig +lt__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +CD_TESTDIR = abs_srcdir=`$(lt__cd) $(srcdir) && pwd`; cd tests + # Hook the test suite into the check rule check-local: tests/atconfig $(srcdir)/$(TESTSUITE) - abs_srcdir=`cd $(srcdir); pwd`; \ - cd tests; \ + $(CD_TESTDIR); \ $(TESTS_ENVIRONMENT) $(SHELL) $$abs_srcdir/$(TESTSUITE) $(TESTSUITE_FLAGS) # Run the test suite on the *installed* tree. installcheck-local: - abs_srcdir=`cd $(srcdir); pwd`; \ - cd tests; \ + $(CD_TESTDIR); \ $(TESTS_ENVIRONMENT) $(SHELL) $$abs_srcdir/$(TESTSUITE) $(TESTSUITE_FLAGS) AUTOTEST_PATH=$(exec_prefix)/bin # We need to remove any file droppings left behind by testsuite clean-local: clean-local-legacy - -abs_srcdir=`cd $(srcdir); pwd`; \ - cd tests; \ + -$(CD_TESTDIR); \ test -f $$abs_srcdir/$(TESTSUITE) && \ $(SHELL) $$abs_srcdir/$(TESTSUITE) --clean