diff options
author | Jim Meyering <jim@meyering.net> | 1997-07-13 19:45:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-07-13 19:45:14 +0000 |
commit | 7e73237bac16bce0cdd82527bd1cf0f729efeeba (patch) | |
tree | 1b7ae8d2b0850d4b4065f1c62ee7cbf47d4041e8 /tests/wc/Makefile.am | |
parent | 8568fe543ba5631ec9afb31b7ceab77b84ce364f (diff) | |
download | coreutils-7e73237bac16bce0cdd82527bd1cf0f729efeeba.tar.xz |
.
Diffstat (limited to 'tests/wc/Makefile.am')
-rw-r--r-- | tests/wc/Makefile.am | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/wc/Makefile.am b/tests/wc/Makefile.am new file mode 100644 index 000000000..953208373 --- /dev/null +++ b/tests/wc/Makefile.am @@ -0,0 +1,45 @@ +## Process this file with automake to produce Makefile.in. + +##test-files-begin +x = wc +explicit = +maint_gen = a0.I a0.X a1.I a1.X a2.I a2.X a3.I a3.X a4.I a4.X a5.I a5.X a6.I \ +a6.X a7.I a7.X a8.I a8.X a9.I a9.X b0.I b0.X b1.I b1.X +run_gen = a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O \ +a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E +##test-files-end + +EXTRA_DIST = mk-script.pl Test.pm $x-tests $(explicit) $(maint_gen) +noinst_SCRIPTS = $x-tests + +PERL = @PERL@ +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 + 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 $@ |