]> git.saurik.com Git - apt.git/blame_incremental - buildlib/configure.mak
* doc/examples/configure-index:
[apt.git] / buildlib / configure.mak
... / ...
CommitLineData
1# -*- make -*-
2
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.
7
8# Input
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.
13BUILDDIR=build
14
15.PHONY: startup
16startup: configure $(BUILDDIR)/config.status $(addprefix $(BUILDDIR)/,$(CONVERTED))
17
18configure: aclocal.m4 configure.in
19 autoconf
20
21aclocal.m4: $(wildcard buildlib/*.m4)
22 aclocal -I buildlib
23
24$(BUILDDIR)/config.status: configure
25 /usr/bin/test -e $(BUILDDIR) || mkdir $(BUILDDIR)
26 (HERE=`pwd`; cd $(BUILDDIR) && $$HERE/configure)
27
28$(addprefix $(BUILDDIR)/,$(CONVERTED)):
29 (cd $(BUILDDIR) && ./config.status)