Debian Codegraph @

modules/metaphone2/tests/Makefile.am

raw
1 # This file is part of GNU Dico
2 # Copyright (C) 1998-2024 Sergey Poznyakoff
3 #
4 # GNU Dico is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8 #
9 # GNU Dico is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with GNU Dico. If not, see <http://www.gnu.org/licenses/>.
16
17 EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4
18 DISTCLEANFILES = atconfig $(check_SCRIPTS)
19 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
20
21 EXTRA_DIST += dicod.cfin
22 SUFFIXES = .cfin .conf
23
24 .cfin.conf:
25 $(AM_V_GEN)sed 's|~moddir~|$(abs_top_builddir)/modules|g;s|~dictdir~|$(abs_top_srcdir)/examples|g' $< > $@
26
27 noinst_DATA = dicod.conf
28 CLEANFILES = dicod.conf
29
30
31 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
32 $(AM_V_GEN){ \
33 echo '# Signature of the current package.'; \
34 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
35 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
36 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
37 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
38 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
39 } >$(srcdir)/package.m4
40
41 #
42
43
44 TESTSUITE_AT = \
45 build.at\
46 comp00.at\
47 comp01.at\
48 comp02.at\
49 encode.at\
50 match00.at\
51 testsuite.at
52
53 TESTSUITE = $(srcdir)/testsuite
54 M4=m4
55
56 AUTOTEST = $(AUTOM4TE) --language=autotest
57 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
58 $(AM_V_GEN)$(AUTOTEST) -I $(srcdir) -I $(top_srcdir)/include testsuite.at -o [email protected]
59 $(AM_V_at)mv [email protected] $@
60
61 atconfig: $(top_builddir)/config.status
62 cd $(top_builddir) && ./config.status tests/$@
63
64 clean-local:
65 @test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
66
67 check-local: atconfig atlocal $(TESTSUITE)
68 @$(SHELL) $(TESTSUITE)
69
70 # Run the test suite on the *installed* tree.
71 #installcheck-local:
72 # $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
73
74