GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / toolchains / hndtools-arm-linux-2.6.36-uclibc-4.5.3 / share / automake-1.11 / am / dejagnu.am
blob08de45c61ae0ae3b811eaa727116e7c9621e1993
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2003, 2006
3 ## Free Software Foundation, Inc.
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
8 ## any later version.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 ## Name of tool to use.  Default is the same as the package.
19 DEJATOOL = $(PACKAGE)
21 ## Default flags to pass to dejagnu.  The user can override this.
22 RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
24 ## In Cygnus mode, these are found in the build tree.
25 ## Otherwise they are looked for in $PATH.
26 if %?CYGNUS%
27 EXPECT = `if test -f $(top_builddir)/../expect/expect; then \
28             echo $(top_builddir)/../expect/expect; \
29           else \
30             echo expect; \
31           fi`
33 RUNTEST = `if test -f $(top_srcdir)/../dejagnu/runtest; then \
34              echo $(top_srcdir)/../dejagnu/runtest; \
35            else \
36              echo runtest; \
37            fi`
38 else ! %?CYGNUS%
39 EXPECT = expect
40 RUNTEST = runtest
41 endif ! %?CYGNUS%
44 .PHONY: check-DEJAGNU
45 check-DEJAGNU: site.exp
46 ## Life is easiest with an absolute srcdir, so do that.
47         srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
48         EXPECT=$(EXPECT); export EXPECT; \
49 ## Allow this to work when expect and DejaGnu are in tree.
50 ## Only required when --cygnus in force.
51 ?CYGNUS?        if [ -f $(top_builddir)/../expect/expect ]; then \
52 ?CYGNUS?          TCL_LIBRARY=`$(am__cd) $(top_srcdir)/../tcl/library && pwd`; \
53 ?CYGNUS?          export TCL_LIBRARY; \
54 ?CYGNUS?        fi; \
55         runtest=$(RUNTEST); \
56 ## If runtest can't be found, print a warning but don't die.  It is
57 ## pointless to cause a failure if the tests cannot be run at all.
58         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
59           exit_status=0; l='$(DEJATOOL)'; for tool in $$l; do \
60             if $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \
61             then :; else exit_status=1; fi; \
62           done; \
63         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
64         fi; \
65         exit $$exit_status
68 ## ------------------- ##
69 ## Building site.exp.  ##
70 ## ------------------- ##
72 ## Note that in the rule we don't directly generate site.exp to avoid
73 ## the possibility of a corrupted site.exp if make is interrupted.
74 ## Jim Meyering has some useful text on this topic.
75 site.exp: Makefile
76         @echo 'Making a new site.exp file...'
77         @echo '## these variables are automatically generated by make ##' >site.tmp
78         @echo '# Do not edit here.  If you wish to override these values' >>site.tmp
79         @echo '# edit the last section' >>site.tmp
80         @echo 'set srcdir $(srcdir)' >>site.tmp
81         @echo "set objdir `pwd`" >>site.tmp
82 ## Quote the *_alias variables because they might be empty.
83 ?BUILD? @echo 'set build_alias "$(build_alias)"' >>site.tmp
84 ?BUILD? @echo 'set build_triplet $(build_triplet)' >>site.tmp
85 ?HOST?  @echo 'set host_alias "$(host_alias)"' >>site.tmp
86 ?HOST?  @echo 'set host_triplet $(host_triplet)' >>site.tmp
87 ?TARGET?        @echo 'set target_alias "$(target_alias)"' >>site.tmp
88 ?TARGET?        @echo 'set target_triplet $(target_triplet)' >>site.tmp
89         @echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
90         @test ! -f site.exp || \
91           sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
92         @-rm -f site.bak
93         @test ! -f site.exp || mv site.exp site.bak
94         @mv site.tmp site.exp
96 ## ---------- ##
97 ## Cleaning.  ##
98 ## ---------- ##
100 .PHONY distclean-am: distclean-DEJAGNU
102 distclean-DEJAGNU:
103 ## Any other cleaning must be done by the user or by the test suite
104 ## itself.  We can't predict what dejagnu or the test suite might
105 ## generate.
106         -rm -f site.exp site.bak
107         -l='$(DEJATOOL)'; for tool in $$l; do \
108           rm -f $$tool.sum $$tool.log; \
109         done