3 # This make fragment is included by the toplevel make to handle configure
4 # and setup. It defines a target called startup that when run will init
5 # the build directory, generate configure from configure.in, create aclocal
6 # and has rules to run config.status should one of the .in files change.
9 # BUILDDIR - The build directory
10 # CONVERTED - List of files output by configure $(BUILD) is prepended
11 # The caller must provide depends for these files
12 # It would be a fairly good idea to run this after a cvs checkout.
16 startup
: configure
$(addprefix $(BUILDDIR
)/,$(CONVERTED
))
18 configure
: aclocal.m4 configure.in
22 $(BUILDDIR
)/config.status
: configure
23 test -e
$(BUILDDIR
) || mkdir
$(BUILDDIR
)
24 (HERE
=`pwd`; cd
$(BUILDDIR
) && $$HERE/configure
)
25 $(addprefix $(BUILDDIR
)/,$(CONVERTED
)): $(BUILDDIR
)/config.status
26 (cd
$(BUILDDIR
) && .
/config.status
)