diff options
Diffstat (limited to 'tests/tail')
-rw-r--r-- | tests/tail/Makefile.am | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/tests/tail/Makefile.am b/tests/tail/Makefile.am index ff7e182f0..5ee0b668a 100644 --- a/tests/tail/Makefile.am +++ b/tests/tail/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 = tail @@ -21,7 +21,7 @@ minus-2.E n-1.O n-1.E n-2.O n-2.E n-3.O n-3.E n-4.O n-4.E n-4a.O n-4a.E n-5.O \ n-5.E n-5a.O n-5a.E n-5b.O n-5b.E f-1.O f-1.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@ @@ -29,29 +29,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 $@ |