Debian Codegraph @

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