Debian Codegraph @

modules/substr/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 dicod.cfin
18 DISTCLEANFILES = atconfig $(check_SCRIPTS)
19 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
20
21 SUFFIXES = .cfin .conf
22
23 .cfin.conf:
24 $(AM_V_GEN)sed 's|~moddir~|$(abs_top_builddir)/modules|g;s|~dictdir~|$(abs_top_srcdir)/examples|g' $< > $@
25
26 noinst_DATA = dicod.conf
27 CLEANFILES = dicod.conf
28
29 ## ------------ ##
30 ## package.m4. ##
31 ## ------------ ##
32
33 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
34 $(AM_V_GEN){ \
35 echo '# Signature of the current package.'; \
36 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
37 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
38 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
39 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
40 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
41 } >$(srcdir)/package.m4
42
43 #
44
45 ## ------------ ##
46 ## Test suite. ##
47 ## ------------ ##
48
49 TESTSUITE_AT = \
50 testsuite.at
51
52 TESTSUITE = $(srcdir)/testsuite
53 M4=m4
54
55 AUTOTEST = $(AUTOM4TE) --language=autotest
56 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
57 $(AM_V_GEN)$(AUTOTEST) -I $(srcdir) -I $(top_srcdir)/include testsuite.at -o [email protected]
58 $(AM_V_at)mv [email protected] $@
59
60 atconfig: $(top_builddir)/config.status
61 cd $(top_builddir) && ./config.status tests/$@
62
63 clean-local:
64 @test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
65
66 check-local: atconfig atlocal $(TESTSUITE)
67 @$(SHELL) $(TESTSUITE)
68
69 # Run the test suite on the *installed* tree.
70 #installcheck-local:
71 # $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
72
73