]> granicus.if.org Git - apache/blob - build/build2.mk
Rebuild the configure for MM. Once this has settled we can remove the
[apache] / build / build2.mk
1 # Copyright (c) 1999, 2000 Sascha Schumann. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
5 # are met:
6 # 1. Redistributions of source code must retain the above copyright
7 #    notice, this list of conditions and the following disclaimer.
8 # 2. Redistributions in binary form must reproduce the above copyright
9 #    notice, this list of conditions and the following disclaimer in the
10 #    documentation and/or other materials provided with the distribution.
11
12 # THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR
13 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
15 # EVENT SHALL SASCHA SCHUMANN BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
17 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
18 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
19 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
20 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
21 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 #
23 ##############################################################################
24 # $Id: build2.mk,v 1.5 2000/03/04 15:49:16 dreid Exp $
25
26 include generated_lists
27
28 TOUCH_FILES = mkinstalldirs install-sh missing
29
30 LT_TARGETS = ltconfig ltmain.sh config.guess config.sub
31
32 config_h_in = include/ap_config_auto.h.in
33 apr_config_h_in = lib/apr/include/apr_config.h.in
34 apr_configure = lib/apr/configure
35 mm_configure = lib/apr/shmem/mm/configure
36
37 APACHE_TARGETS = $(TOUCH_FILES) $(LT_TARGETS) configure $(config_h_in)
38
39 APR_TARGETS = $(apr_configure) $(apr_config_h_in) $(mm_configure)
40
41 targets = .deps aclocal.m4 $(APACHE_TARGETS) $(APR_TARGETS)
42
43 all: $(targets)
44
45 .deps:
46         touch $@
47
48 libtool_m4 = $(libtool_prefix)/share/aclocal/libtool.m4
49         
50 aclocal.m4: acinclude.m4 $(libtool_m4)
51         @echo rebuilding $@
52         @cat acinclude.m4 $(libtool_m4) > $@
53         
54 $(LT_TARGETS):
55         libtoolize $(AMFLAGS) --force
56         
57 $(config_h_in): configure
58 # explicitly remove target since autoheader does not seem to work 
59 # correctly otherwise (timestamps are not updated)
60         @echo rebuilding $@
61         @rm -f $@
62         autoheader
63
64 $(TOUCH_FILES):
65         touch $(TOUCH_FILES)
66
67 configure: aclocal.m4 configure.in $(config_m4_files)
68         @echo rebuilding $@
69         rm -f config.cache
70         autoconf
71
72 $(apr_config_h_in): $(apr_configure) lib/apr/acconfig.h
73         @echo rebuilding $@
74         @rm -f $@
75         (cd lib/apr && autoheader)
76
77 $(apr_configure): lib/apr/aclocal.m4 lib/apr/configure.in lib/apr/threads.m4
78         @echo rebuilding $@
79         (cd lib/apr && autoconf)
80
81 $(mm_configure): lib/apr/shmem/unix/mm/configure.in
82         @echo rebuilding $@
83         (cd lib/apr/shmem/unix/mm && autoconf)