Debian Codegraph @

mail/testsuite/Makefile.am

raw
1 ## This file is part of GNU Mailutils.
2 ## Copyright (C) 2002-2025 Free Software Foundation, Inc.
3 ##
4 ## GNU Mailutils is free software; you can redistribute it and/or
5 ## modify it under the terms of the GNU General Public License as
6 ## published by the Free Software Foundation; either version 3, or (at
7 ## your option) any later version.
8 ##
9 ## GNU Mailutils is distributed in the hope that it will be useful, but
10 ## WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ## General Public License for more details.
13 ##
14 ## You should have received a copy of the GNU General Public License
15 ## along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
16
17 AUTOMAKE_OPTIONS = dejagnu
18 DEJATOOL = mail
19 RUNTESTFLAGS =
20 CLEANFILES = *.log
21 EXTRA_DIST = if.mail
22 test_dirs = config lib mail
23
24 dist-hook:
25 here=`cd $(top_builddir)/$(subdir) && pwd`; \
26 srcdir=`cd $(srcdir) && pwd`; \
27 distdir=`cd $(distdir) && pwd`; \
28 for dir in $(test_dirs); \
29 do \
30 cd $$srcdir;\
31 mkdir $$distdir/$$dir;\
32 cd $$dir;\
33 for file in DISTFILES `cat DISTFILES`; do \
34 d=$$srcdir/$$dir; \
35 if test -d $$d/$$file; then \
36 cp -pr $$d/$$file $$distdir/$$dir/$$file; \
37 else \
38 test -f $$distdir/$$dir/$$file \
39 || cp -p $$d/$$file $$distdir/$$dir/$$file || exit; \
40 fi; \
41 done;\
42 done;\
43 cd $$here
44
45 site.exp: Makefile remote.exp
46 @echo 'Making a new site.exp file...'
47 @test ! -f site.bak || rm -f site.bak
48 @echo '## these variables are automatically generated by make ##' > $@-t
49 @echo '# Do not edit here. If you wish to override these values' >> $@-t
50 @echo '# edit the last section' >> $@-t
51 @echo 'set tool $(DEJATOOL)' >> $@-t
52 @echo "set top_srcdir `cd $(top_srcdir); pwd`" >> $@-t
53 @echo "set top_builddir `cd $(top_builddir); pwd`" >> $@-t
54 @echo "set srcdir `cd $(srcdir); pwd`" >> $@-t
55 @echo 'set objdir' `pwd` >> $@-t
56 @echo 'set host_alias "$(host_alias)"' >> $@-t
57 @echo 'set host_triplet $(host_triplet)' >> $@-t
58 @echo 'set target_alias "$(target_alias)"' >> $@-t
59 @echo 'set target_triplet $(target_triplet)' >> $@-t
60 @echo 'set build_alias "$(build_alias)"' >> $@-t
61 @echo 'set build_triplet $(build_triplet)' >> $@-t
62 @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
63 @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
64 @test ! -f site.exp || mv site.exp site.bak
65 @mv $@-t site.exp
66
67 remote.exp:;
68 @echo 'Making a new remote.exp file...'
69 @test ! -f remote.bak || rm -f remote.bak
70 @echo '## These variables are used to set up for the remote testing.' >> $@-t
71 @echo '## Please, read file README in this directory for instructions' >> $@-t
72 @echo '## on how to use this file' >> $@-t
73 @echo "set host_board `hostname`" >> $@-t
74 @echo 'set board_info($$host_board,connect) rlogin' >> $@-t
75 @echo 'set board_info($$host_board,shell_prompt) "\\$$ "' >> $@-t
76 @echo "set board_info(\$$host_board,top_srcdir) `cd $(top_srcdir); pwd`" >> $@-t
77 @echo "set board_info(\$$host_board,srcdir) `cd $(srcdir); pwd`" >> $@-t
78 @echo "set board_info(\$$host_board,objdir) `pwd`" >> $@-t
79 @echo "set board_info(\$$host_board,top_srcdir) `cd $(top_srcdir); pwd`" >> $@-t
80 @echo "set board_info(\$$host_board,top_builddir) `cd $(top_builddir); pwd`" >> $@-t
81 @test ! -f remote.exp || mv remote.exp remote.bak
82 @mv $@-t remote.exp
83
84
85 DISTCLEANFILES=*.exp *.log *.sum
86
87 distclean-local:
88 -rm -rf data