OSDN Git Service

daily update
[pf3gnuchains/pf3gnuchains3x.git] / tcl / 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 CONFIGDIR2=@CONFIGDIR2@
7
8 VPATH = @srcdir@
9 SHELL = @SHELL@
10 SRC_DIR = @srcdir@
11
12 @SET_MAKE@
13
14 all:
15         @cd $(CONFIGDIR) && $(MAKE) $@
16         @test x"$(CONFIGDIR2)" = x"" || (cd "$(CONFIGDIR2)" && $(MAKE) $@)
17
18 install test install-binaries install-libraries install-minimal:
19         @cd $(CONFIGDIR) && $(MAKE) $@
20
21 mostlyclean-recursive clean-recursive distclean-recursive \
22 maintainer-clean-recursive:
23         @cd $(CONFIGDIR) && $(MAKE) `echo $@ | sed 's/-recursive//'`
24         @test x"$(CONFIGDIR2)" = x"" || (cd "$(CONFIGDIR2)" && $(MAKE) `echo $@ | sed 's/-recursive'`)
25
26 configure:
27         cd $(SRC_DIR) && autoconf
28
29 mostlyclean: mostlyclean-recursive
30
31 clean: clean-recursive
32
33 distclean-local:
34         rm -f Makefile config.status config.cache config.log
35
36 distclean: distclean-recursive distclean-local
37
38 maintainer-clean: distclean-local maintainer-clean-recursive
39
40
41 #----------------------------------------------------------------
42 # These let the DejaGnu test suite run when DejaGnu isn't 
43 # installed yet, so run it from the srcdir and objdir.
44 #----------------------------------------------------------------
45 EXPECT = ` \
46   if [ -f $${rootme}/../expect/expect ] ; then \
47     echo $${rootme}/../expect/expect ; \
48   else echo expect ; fi`
49
50 RUNTESTFLAGS =
51 RUNTEST = ` \
52   if [ -f $(SRC_DIR)/../dejagnu/runtest ] ; then \
53     echo $(SRC_DIR)/../dejagnu/runtest ; \
54   else echo runtest ;  fi`
55
56 check:
57         cd $(CONFIGDIR) && $(MAKE) tcltest
58         rootme=`pwd`; export rootme; \
59         srcdir=${SRC_DIR}; export srcdir ; \
60         EXPECT=${EXPECT} ; export EXPECT ; \
61         if [ -f $${rootme}/../expect/expect ] ; then  \
62            TCL_LIBRARY=`cd $${srcdir}/library && pwd` ; \
63            export TCL_LIBRARY ; fi ; \
64         $(RUNTEST) $(RUNTESTFLAGS) --tool tcl --srcdir $(SRC_DIR)/testsuite
65
66 install-info info installcheck:
67
68 Makefile: Makefile.in config.status
69         CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
70
71 config.status: configure
72         $(SHELL) config.status --recheck
73