OSDN Git Service

Fix ChangeLog typo.
[pf3gnuchains/pf3gnuchains3x.git] / tk / Makefile.in
1 # Minimal top-level Makefile.  Just pass everything to the $(CONFIGDIR)
2 # subdir.
3 # Tom Tromey <tromey@cygnus.com>
4
5 CONFIGDIR=@CONFIGDIR@
6
7 VPATH = @srcdir@
8 SHELL = @SHELL@
9 srcdir = @srcdir@
10
11 @SET_MAKE@
12
13 all install install-binaries install-libraries install-minimal:
14         @cd $(CONFIGDIR) && $(MAKE) $@
15
16 # Nothing for these yet.
17 installcheck install-info info:
18
19 mostlyclean-recursive clean-recursive distclean-recursive \
20 maintainer-clean-recursive:
21         @cd $(CONFIGDIR) && $(MAKE) `echo $@ | sed 's/-recursive//'`
22
23 # Don't depend on configure.in, because we can't ensure that the user
24 # has autoconf.
25 configure:
26         cd $(srcdir) ; autoconf
27
28 mostlyclean: mostlyclean-recursive
29
30 clean: clean-recursive
31
32 distclean-local:
33         rm -f Makefile config.status config.cache config.log
34
35 distclean: distclean-recursive distclean-local
36
37 maintainer-clean: distclean-local maintainer-clean-recursive
38
39 Makefile: Makefile.in config.status
40         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
41
42 config.status: configure
43         $(SHELL) config.status --recheck
44
45 #----------------------------------------------------------------
46 # These let the DejaGnu test suite run when DejaGnu isn't 
47 # installed yet, so run it from the srcdir and objdir.
48 #----------------------------------------------------------------
49 EXPECT = ` \
50   if [ -f $${rootme}/../expect/expect ] ; then \
51     echo $${rootme}/../expect/expect ; \
52   else echo expect ; fi`
53
54 RUNTESTFLAGS =
55 RUNTEST = ` \
56   if [ -f $(srcdir)/../dejagnu/runtest ] ; then \
57     echo $(srcdir)/../dejagnu/runtest ; \
58   else echo runtest ;  fi`
59
60 check:
61         cd $(CONFIGDIR) && $(MAKE) tktest
62         rootme=`pwd`; export rootme; \
63         srcdir=${srcdir}; export srcdir ; \
64         EXPECT=${EXPECT} ; export EXPECT ; \
65         if [ -f $${rootme}/../expect/expect ] ; then  \
66            TCL_LIBRARY=`cd $${srcdir}/../tcl/library && pwd`; \
67            export TCL_LIBRARY; \
68            TK_LIBRARY=`cd $${srcdir}/library && pwd`; \
69            export TK_LIBRARY; \
70         fi ; \
71         $(RUNTEST) $(RUNTESTFLAGS) --tool tk --srcdir $(srcdir)/testsuite