tizen 2.0
[external/ltrace.git] / testsuite / Makefile
1 # Copyright (C) 1992 - 2001 Free Software Foundation, Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 1, or (at your option)
6 # any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 #
17
18 AUTOMAKE_OPTIONS = dejagnu
19 EXPECT  =       expect
20 RUNTEST =       runtest
21 CC      =       @CC@
22
23 srcdir =        .
24 RUNTESTDEFAULTFLAGS = --srcdir $(srcdir)
25
26 CLEANFILES = *.log *.sum site.bak setval.tmp site.exp
27
28 SUBDIRS = ltrace.main ltrace.minor ltrace.torture
29
30 #all: all-recursive
31
32 .SUFFIXES:
33
34 check-DEJAGNU: site.exp
35         EXPECT=$(EXPECT); export EXPECT;
36         @$(RUNTEST) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS);
37
38 site.exp:
39         @echo 'Making a new site.exp file...'
40         @echo '## these variables are automatically generated by make ##' >site.tmp
41         @echo '# Do not edit here.  If you wish to override these values' >>site.tmp
42         @echo '# edit the last section' >>site.tmp
43         @echo 'set srcdir $(srcdir)' >>site.tmp
44         @echo "set objdir `pwd`" >>site.tmp
45         @echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
46         @test ! -f site.exp || \
47         sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
48         @-rm -f site.bak
49         @test ! -f site.exp || mv site.exp site.bak
50         @mv site.tmp site.exp
51
52 check: check-DEJAGNU
53
54 clean:
55         list='$(SUBDIRS)'; for subdir in $$list; do \
56         echo "Making clean in $$subdir"; \
57         (cd $$subdir && $(MAKE) clean ) done;
58         
59         -rm -f $(CLEANFILES)
60
61 distclean:
62         list='$(SUBDIRS)'; for subdir in $$list; do \
63         echo "Making clean in $$subdir"; \
64         (cd $$subdir && $(MAKE) distclean ) done;
65         -rm -f $(CLEANFILES)
66
67 .PHONY: $(RECURSIVE_TARGETS) check  clean distclean realclean
68
69 # Tell versions [3.59,3.63) of GNU make to not export all variables.
70 # Otherwise a system limit (for SysV at least) may be exceeded.
71 .NOEXPORT: