summaryrefslogtreecommitdiff
path: root/tests/tr
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-04 14:43:06 +0000
committerJim Meyering <jim@meyering.net>1997-07-04 14:43:06 +0000
commit19d151cbbd625faea3628f00b835c848f2fc953d (patch)
treebafa31db86003ef86205ce41d35d68daa664850a /tests/tr
parentd61ab3fc243ceaba243336c7f106257d526b08ca (diff)
downloadcoreutils-19d151cbbd625faea3628f00b835c848f2fc953d.tar.xz
regenerate with updated ../Makefile.am.in
Diffstat (limited to 'tests/tr')
-rw-r--r--tests/tr/Makefile.am19
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/tr/Makefile.am b/tests/tr/Makefile.am
index d083f5fb6..0d7d0f353 100644
--- a/tests/tr/Makefile.am
+++ b/tests/tr/Makefile.am
@@ -31,11 +31,13 @@ editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,@srcdir@,g'
TESTS = $x-tests
-$x-tests: @MAINT@mk-script Test.pm
+$(srcdir)/$x-tests: @MAINT@mk-script Test.pm
./mk-script ../../src/$x > $@.n
mv $@.n $@
chmod 755 $@
+mk-script: ../../config.status
+
SUFFIXES = .pl
.pl:
@@ -47,12 +49,11 @@ SUFFIXES = .pl
MAINTAINERCLEANFILES = $x-tests $(maint_gen)
CLEANFILES = $(run_gen)
-@MAINT@rebuild-check: Test.pm mk-script
-@MAINT@ rb=rb-check; rm -f $rb; \
-@MAINT@ m_template=../Makefile.am.in; \
-@MAINT@ sed -n '1,/^##test-files-begin/p' $$m_template > $$rb; \
+@MAINT@Makefile.am: ../Makefile.am.in Test.pm mk-script
+@MAINT@ rm -f $@ $@t
+@MAINT@ sed -n '1,/^##test-files-begin/p' $< > $@t
@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' $$m_template >> $$rb; \
-@MAINT@ diff -u Makefile.am $$rb && echo ok || echo no
+@MAINT@ echo "x = $$tool" >> $@t
+@MAINT@ ./mk-script --list >> $@t
+@MAINT@ sed -n '/^##test-files-end/,$$p' $< >> $@t
+@MAINT@ mv $@t $@