1 # Copyright (C) 1992 - 2001 Free Software Foundation, Inc.
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)
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.
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.
18 AUTOMAKE_OPTIONS = dejagnu
24 RUNTESTDEFAULTFLAGS = --srcdir $(srcdir)
26 CLEANFILES = *.log *.sum site.bak setval.tmp site.exp
28 SUBDIRS = ltrace.main ltrace.minor ltrace.torture
34 check-DEJAGNU: site.exp
35 EXPECT=$(EXPECT); export EXPECT;
36 @$(RUNTEST) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS);
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
49 @test ! -f site.exp || mv site.exp site.bak
55 list='$(SUBDIRS)'; for subdir in $$list; do \
56 echo "Making clean in $$subdir"; \
57 (cd $$subdir && $(MAKE) clean ) done;
62 list='$(SUBDIRS)'; for subdir in $$list; do \
63 echo "Making clean in $$subdir"; \
64 (cd $$subdir && $(MAKE) distclean ) done;
67 .PHONY: $(RECURSIVE_TARGETS) check clean distclean realclean
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.