summaryrefslogtreecommitdiff
path: root/tests/head
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/head
parent4e7206113079ee0896ab6da08f7214556dc7962e (diff)
downloadcoreutils-29772527c8588c557fabc4e6d118b55670d95237.tar.xz
.
Diffstat (limited to 'tests/head')
-rw-r--r--tests/head/Makefile.in36
1 files changed, 13 insertions, 23 deletions
diff --git a/tests/head/Makefile.in b/tests/head/Makefile.in
index 2cf3ba6fa..deefcd4f1 100644
--- a/tests/head/Makefile.in
+++ b/tests/head/Makefile.in
@@ -99,7 +99,7 @@ obs-4.O obs-4.E obs-5.O obs-5.E fail-1.O fail-1.E posix-0.O posix-0.E \
posix-1.O posix-1.E posix-2.O posix-2.E posix-3.O posix-3.E posix-4.O \
posix-4.E posix-5.O posix-5.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@
@@ -107,7 +107,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)
@@ -126,8 +126,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/head/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
@@ -232,28 +231,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.