]> git.saurik.com Git - apt.git/blob - buildlib/configure.mak
remove (outdated) config.{sub,guess} and use the ones provided
[apt.git] / buildlib / configure.mak
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.
13 BUILDDIR=build
14
15 .PHONY: startup
16 startup: configure $(BUILDDIR)/config.status $(addprefix $(BUILDDIR)/,$(CONVERTED))
17
18 configure: aclocal.m4 configure.in
19 # use the files provided from the system instead of carry around
20 # and use (most of the time outdated) copycats
21 ln -sf /usr/share/misc/config.sub buildlib/config.sub
22 ln -sf /usr/share/misc/config.guess buildlib/config.guess
23 autoconf
24
25 aclocal.m4: $(wildcard buildlib/*.m4)
26 aclocal -I buildlib
27
28 $(BUILDDIR)/config.status: configure
29 /usr/bin/test -e $(BUILDDIR) || mkdir $(BUILDDIR)
30 (HERE=`pwd`; cd $(BUILDDIR) && $$HERE/configure)
31
32 $(addprefix $(BUILDDIR)/,$(CONVERTED)):
33 (cd $(BUILDDIR) && ./config.status)