summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-18 06:39:04 +0000
committerJim Meyering <jim@meyering.net>2003-10-18 06:39:04 +0000
commitbe73fb72000b8da69a54b06d5f3103c215a16597 (patch)
tree3cd3ed1e60ad93b9897a988153a557958b299828 /tests
parent569c3b26a6483ad901b03e711978333947d5571f (diff)
downloadcoreutils-be73fb72000b8da69a54b06d5f3103c215a16597.tar.xz
($(srcdir)/$x-tests): Pass $(srcdir) as first argument of mk-script.
($(srcdir)/Makefile.am): Likewise. Prepend $(srcdir) to target.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Makefile.am.in b/tests/Makefile.am.in
index c7ddcc606..73f0f10d1 100644
--- a/tests/Makefile.am.in
+++ b/tests/Makefile.am.in
@@ -12,7 +12,7 @@ TESTS = $x-tests
mk_script = $(srcdir)/../mk-script
$(srcdir)/$x-tests: $(mk_script) Test.pm
- $(PERL) -I$(srcdir) -w -- $(mk_script) ../../src/$x > $@.n
+ $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) ../../src/$x > $@.n
mv $@.n $@
chmod 755 $@
@@ -21,11 +21,11 @@ CLEANFILES = $(run_gen)
check: $(maint_gen)
-Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
+$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
rm -f $@ $@t
sed -n '1,/^##test-files-begin/p' $< > $@t
tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) --list >> $@t
+ $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
sed -n '/^##test-files-end/,$$p' $< >> $@t
mv $@t $@