summaryrefslogtreecommitdiff
path: root/tests/sort
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-02-04 18:04:39 +0000
committerJim Meyering <jim@meyering.net>1998-02-04 18:04:39 +0000
commit43d2406f55a4ac71747b8d9e475831161f61ce3e (patch)
tree092615afc9ff649f7f45f8e6bcd9315896825809 /tests/sort
parent29772527c8588c557fabc4e6d118b55670d95237 (diff)
downloadcoreutils-43d2406f55a4ac71747b8d9e475831161f61ce3e.tar.xz
.
Diffstat (limited to 'tests/sort')
-rw-r--r--tests/sort/Makefile.am35
1 files changed, 13 insertions, 22 deletions
diff --git a/tests/sort/Makefile.am b/tests/sort/Makefile.am
index 95ed026fd..1f612ae70 100644
--- a/tests/sort/Makefile.am
+++ b/tests/sort/Makefile.am
@@ -1,4 +1,4 @@
-## Process this file with automake to produce Makefile.in.
+## Process this file with automake to produce Makefile.in -*-Makefile-*-.
##test-files-begin
x = sort
@@ -37,7 +37,7 @@ n10b.E n11a.O n11a.E n11b.O n11b.E 01a.O 01a.E 02a.O 02a.E 02b.O 02b.E 02c.O \
21a.E 21b.O 21b.E 21c.O 21c.E 21d.O 21d.E 21e.O 21e.E 21f.O 21f.E 21g.O 21g.E
##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@
@@ -45,29 +45,20 @@ editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,@srcdir@,g'
TESTS = $x-tests
-$(srcdir)/$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 $@
-mk-script: ../../config.status
-
-SUFFIXES = .pl
-
-.pl:
- rm -f $@ $@.tmp
- $(editpl) $< > $@.tmp
- chmod +x-w $@.tmp
- mv $@.tmp $@
-
MAINTAINERCLEANFILES = $x-tests $(maint_gen)
CLEANFILES = $(run_gen)
-@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" >> $@t
-@MAINT@ ./mk-script --list >> $@t
-@MAINT@ sed -n '/^##test-files-end/,$$p' $< >> $@t
-@MAINT@ mv $@t $@
+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) $(mk_script) --list >> $@t
+ sed -n '/^##test-files-end/,$$p' $< >> $@t
+ mv $@t $@