Debian Codegraph @

modules/nprefix/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 dict.out
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_srcdir)|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 np00.at\
51 np01.at\
52 np02.at\
53 np03.at\
54 np04.at\
55 testsuite.at
56
57 TESTSUITE = $(srcdir)/testsuite
58 M4=m4
59
60 AUTOTEST = $(AUTOM4TE) --language=autotest
61 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
62 $(AM_V_GEN)$(AUTOTEST) -I $(srcdir) -I $(top_srcdir)/include testsuite.at -o [email protected]
63 $(AM_V_at)mv [email protected] $@
64
65 atconfig: $(top_builddir)/config.status
66 cd $(top_builddir) && ./config.status tests/$@
67
68 clean-local:
69 @test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
70
71 check-local: atconfig atlocal $(TESTSUITE)
72 @$(SHELL) $(TESTSUITE)
73
74 # Run the test suite on the *installed* tree.
75 #installcheck-local:
76 # $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
77
78