summaryrefslogtreecommitdiff
path: root/tests/sort
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-12-22 03:32:51 +0000
committerJim Meyering <jim@meyering.net>1996-12-22 03:32:51 +0000
commita80c49322b9d0424dd8693b21858673bb2688031 (patch)
tree5552589b2786d40cafd82db205d60768a5dd1871 /tests/sort
parent3982e9cdf868fdf104581a7eb431185dab0352a9 (diff)
downloadcoreutils-a80c49322b9d0424dd8693b21858673bb2688031.tar.xz
.
Diffstat (limited to 'tests/sort')
-rw-r--r--tests/sort/Makefile.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/sort/Makefile.am b/tests/sort/Makefile.am
index 763ccf56f..9c25e34c6 100644
--- a/tests/sort/Makefile.am
+++ b/tests/sort/Makefile.am
@@ -1,8 +1,7 @@
## Process this file with automake to produce Makefile.in.
-x = sort
-
##test-files-begin
+x = sort
explicit =
maint_gen = t01a.in t01a.exp t02a.in t02a.exp t02b.in t02b.exp t02c.in \
t02c.exp t02d.in t02d.exp t02e.in t02e.exp t02f.in t02f.exp t03a.in t03a.exp \
@@ -70,7 +69,10 @@ CLEANFILES = $(run_gen)
@MAINT@rebuild-check: Test.pm mk-script
@MAINT@ rb=rb-check; rm -f $rb; \
-@MAINT@ sed -n '1,/^##test-files-begin/p' Makefile.am > $$rb; \
+@MAINT@ m_template=../Makefile.am.in; \
+@MAINT@ sed -n '1,/^##test-files-begin/p' $$m_template > $$rb; \
+@MAINT@ tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
+@MAINT@ echo "x = $$tool" >> $$rb; \
@MAINT@ ./mk-script --list >> $$rb; \
-@MAINT@ sed -n '/^##test-files-end/,$$p' Makefile.am >> $$rb; \
+@MAINT@ sed -n '/^##test-files-end/,$$p' $$m_template >> $$rb; \
@MAINT@ diff -u Makefile.am $$rb && echo ok || echo no