1998-03-31 20:49:00 +08:00
|
|
|
## Process this file with automake to produce Makefile.in -*-Makefile-*-.
|
1997-02-03 11:22:52 +08:00
|
|
|
|
|
|
|
##test-files-begin
|
|
|
|
##test-files-end
|
|
|
|
|
1998-03-31 20:49:00 +08:00
|
|
|
EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
|
1997-02-03 11:22:52 +08:00
|
|
|
noinst_SCRIPTS = $x-tests
|
|
|
|
|
|
|
|
PERL = @PERL@
|
|
|
|
editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,@srcdir@,g'
|
|
|
|
|
|
|
|
TESTS = $x-tests
|
|
|
|
|
1998-03-31 20:49:00 +08:00
|
|
|
mk_script = $(srcdir)/../mk-script
|
|
|
|
$(srcdir)/$x-tests: $(mk_script) Test.pm
|
1998-05-04 05:41:51 +08:00
|
|
|
$(PERL) -I. -w -- $(mk_script) ../../src/$x > $@.n
|
1997-02-03 11:22:52 +08:00
|
|
|
mv $@.n $@
|
|
|
|
chmod 755 $@
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = $x-tests $(maint_gen)
|
|
|
|
CLEANFILES = $(run_gen)
|
|
|
|
|
1998-06-18 23:20:03 +08:00
|
|
|
check: $(maint_gen)
|
|
|
|
|
1998-03-31 20:49:00 +08:00
|
|
|
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
|
1998-05-04 05:41:51 +08:00
|
|
|
$(PERL) -I. -w -- $(mk_script) --list >> $@t
|
1998-03-31 20:49:00 +08:00
|
|
|
sed -n '/^##test-files-end/,$$p' $< >> $@t
|
|
|
|
mv $@t $@
|