Debian Codegraph @

modules/gcide/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) GCIDE.IDX
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)/dict|g;s|~idxdir~|$(abs_builddir)|g' $< > $@
25
26 noinst_DATA = dicod.conf
27 CLEANFILES = dicod.conf
28
29 dist-hook:
30 tar -C $(srcdir) -c -f - dict/CIDE.[A-Z] dict/INFO | \
31 tar -C $(distdir) -x -f -
32
33 ## ------------ ##
34 ## package.m4. ##
35 ## ------------ ##
36
37 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
38 $(AM_V_GEN){ \
39 echo '# Signature of the current package.'; \
40 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
41 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
42 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
43 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
44 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
45 } >$(srcdir)/package.m4
46
47
48 ## ------------ ##
49 ## Auxiliaries. ##
50 ## ------------ ##
51
52 noinst_PROGRAMS=degcide greek exgrk
53 degcide_LDADD = ../libgcide.la ../../../lib/libdico.la $(LIBICONV) @LIBINTL@
54 greek_LDADD = ../libgcide.la ../../../lib/libdico.la $(LIBICONV) @LIBINTL@
55 AM_CPPFLAGS = \
56 @DICO_LIB_CONFIG@\
57 -I$(top_srcdir)/include\
58 -I$(top_builddir)/include\
59 -I$(top_srcdir)/modules/gcide\
60 @GRECS_INCLUDES@
61
62 ## ------------ ##
63 ## Test suite. ##
64 ## ------------ ##
65
66 TESTSUITE_AT = \
67 all.at\
68 autoidx.at\
69 def00.at\
70 def01.at\
71 def02.at\
72 def03.at\
73 def04.at\
74 def05.at\
75 def06.at\
76 descr.at\
77 exact.at\
78 greek.at\
79 idx.at\
80 info.at\
81 markup.at\
82 nopr.at\
83 prefix.at\
84 testsuite.at
85
86 TESTSUITE = $(srcdir)/testsuite
87 M4=m4
88
89 AUTOTEST = $(AUTOM4TE) --language=autotest
90 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
91 $(AM_V_GEN)$(AUTOTEST) -I $(srcdir) -I $(top_srcdir)/include testsuite.at -o [email protected]
92 $(AM_V_at)mv [email protected] $@
93
94 atconfig: $(top_builddir)/config.status
95 cd $(top_builddir) && ./config.status tests/$@
96
97 clean-local:
98 @test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean
99
100 check-local: atconfig atlocal $(TESTSUITE)
101 @$(SHELL) $(TESTSUITE)
102