summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-04 15:02:06 +0000
committerJim Meyering <jim@meyering.net>1997-07-04 15:02:06 +0000
commit4d8f9c4929ee99a31f4968fac8263ea933b5220f (patch)
tree9925f786d7d13dcb7d571e9c89d51a8a82599754 /tests
parent1e8021686147cce886dbbaf3176e053a2c631ff8 (diff)
downloadcoreutils-4d8f9c4929ee99a31f4968fac8263ea933b5220f.tar.xz
regenerate with updated ../Makefile.am.in
Diffstat (limited to 'tests')
-rw-r--r--tests/factor/Makefile.am19
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/factor/Makefile.am b/tests/factor/Makefile.am
index df1519f43..55a2388cb 100644
--- a/tests/factor/Makefile.am
+++ b/tests/factor/Makefile.am
@@ -19,11 +19,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:
@@ -35,12 +37,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 $@