1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-.
6 EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
7 noinst_SCRIPTS = $x-tests
9 PATH="`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
11 editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
15 mk_script = $(srcdir)/../mk-script
16 $(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
17 test '$x' = test && prog=../../src/$x || prog=$x; \
18 $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
22 MAINTAINERCLEANFILES = $x-tests $(maint_gen)
23 CLEANFILES = $(run_gen)
27 $(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
29 sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
30 tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
31 echo "x = $$tool" >> $@t
32 $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
33 sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t