summaryrefslogtreecommitdiff
path: root/tests/wc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-02-04 18:01:23 +0000
committerJim Meyering <jim@meyering.net>1998-02-04 18:01:23 +0000
commit29772527c8588c557fabc4e6d118b55670d95237 (patch)
tree233bc6af51314ee4bda16b719ae0c42ff78ce5a6 /tests/wc
parent4e7206113079ee0896ab6da08f7214556dc7962e (diff)
downloadcoreutils-29772527c8588c557fabc4e6d118b55670d95237.tar.xz
.
Diffstat (limited to 'tests/wc')
-rw-r--r--tests/wc/Makefile.in36
1 files changed, 13 insertions, 23 deletions
diff --git a/tests/wc/Makefile.in b/tests/wc/Makefile.in
index b7480de10..f606b5aec 100644
--- a/tests/wc/Makefile.in
+++ b/tests/wc/Makefile.in
@@ -94,7 +94,7 @@ 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 c0.O c0.E c1.O c1.E \
c2.O c2.E
-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@
@@ -102,7 +102,7 @@ editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,@srcdir@,g'
TESTS = $x-tests
-SUFFIXES = .pl
+mk_script = $(srcdir)/../mk-script
MAINTAINERCLEANFILES = $x-tests $(maint_gen)
CLEANFILES = $(run_gen)
@@ -121,8 +121,7 @@ GZIP = --best
default: all
.SUFFIXES:
-.SUFFIXES: .pl
-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
+$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/wc/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
@@ -227,28 +226,19 @@ install-exec install-data install uninstall all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-
-$(srcdir)/$x-tests: @MAINT@mk-script Test.pm
- ./mk-script ../../src/$x > $@.n
+$(srcdir)/$x-tests: $(mk_script) Test.pm
+ $(PERL) -w -- $(mk_script) ../../src/$x > $@.n
mv $@.n $@
chmod 755 $@
-mk-script: ../../config.status
-
-.pl:
- rm -f $@ $@.tmp
- $(editpl) $< > $@.tmp
- chmod +x-w $@.tmp
- mv $@.tmp $@
-
-@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 $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.