summaryrefslogtreecommitdiff
path: root/tests/Makefile.am.in
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-03-31 12:49:00 +0000
committerJim Meyering <jim@meyering.net>1998-03-31 12:49:00 +0000
commit69412999dc8aade3eef0541389f8ca563683523e (patch)
treea4184ef194ac39a5870bf9c6b9d0fbafdfa7c211 /tests/Makefile.am.in
parent85b39cb5897e513054e1dd210f4c172abd61d7db (diff)
downloadcoreutils-69412999dc8aade3eef0541389f8ca563683523e.tar.xz
(EXTRA_DIST): Remove mk-script.pl.
(mk_script): Set to ../mk-script. (x-tests): Use `$(PERL) -w -- $(mk_script)', not ./mk-script. Remove @MAINT@ cruft. (Makefile.am): Likewise. Remove @MAINT@ cruft. Now `missing' will explain the failure when people don't have Perl yet modify a file whose rebuilding would lead to the use of Perl.
Diffstat (limited to 'tests/Makefile.am.in')
-rw-r--r--tests/Makefile.am.in34
1 files changed, 13 insertions, 21 deletions
diff --git a/tests/Makefile.am.in b/tests/Makefile.am.in
index a8c0eca3f..92572dfe9 100644
--- a/tests/Makefile.am.in
+++ b/tests/Makefile.am.in
@@ -1,9 +1,9 @@
-## Process this file with automake to produce Makefile.in.
+## Process this file with automake to produce Makefile.in -*-Makefile-*-.
##test-files-begin
##test-files-end
-EXTRA_DIST = mk-script.pl Test.pm $x-tests $(explicit) $(maint_gen)
+EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
noinst_SCRIPTS = $x-tests
PERL = @PERL@
@@ -11,28 +11,20 @@ editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,@srcdir@,g'
TESTS = $x-tests
-$x-tests: @MAINT@mk-script Test.pm
- ./mk-script ../../src/$x > $@.n
+mk_script = $(srcdir)/../mk-script
+$(srcdir)/$x-tests: $(mk_script) Test.pm
+ $(PERL) -w -- $(mk_script) ../../src/$x > $@.n
mv $@.n $@
chmod 755 $@
-SUFFIXES = .pl
-
-.pl:
- rm -f $@ $@.tmp
- $(editpl) $< > $@.tmp
- chmod +x-w $@.tmp
- mv $@.tmp $@
-
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@ 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
+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) -w -- $(mk_script) --list >> $@t
+ sed -n '/^##test-files-end/,$$p' $< >> $@t
+ mv $@t $@