jffs2 patches
[openwrt.git] / obsolete-buildroot / make / automake.mk
1 #############################################################
2 #
3 # automake
4 #
5 #############################################################
6 AUTOMAKE_SOURCE:=automake-1.6.3.tar.bz2
7 AUTOMAKE_SITE:=ftp://ftp.gnu.org/gnu/automake
8 AUTOMAKE_CAT:=bzcat
9 AUTOMAKE_DIR:=$(BUILD_DIR)/automake-1.6.3
10 AUTOMAKE_BINARY:=automake
11 AUTOMAKE_TARGET_BINARY:=usr/bin/automake
12
13 $(DL_DIR)/$(AUTOMAKE_SOURCE):
14 $(WGET) -P $(DL_DIR) $(AUTOMAKE_SITE)/$(AUTOMAKE_SOURCE)
15
16 automake-source: $(DL_DIR)/$(AUTOMAKE_SOURCE)
17
18 $(AUTOMAKE_DIR)/.unpacked: $(DL_DIR)/$(AUTOMAKE_SOURCE)
19 $(AUTOMAKE_CAT) $(DL_DIR)/$(AUTOMAKE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(AUTOMAKE_DIR)/.unpacked
21
22 $(AUTOMAKE_DIR)/.configured: $(AUTOMAKE_DIR)/.unpacked
23 (cd $(AUTOMAKE_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --sbindir=/usr/sbin \
34 --libexecdir=/usr/lib \
35 --sysconfdir=/etc \
36 --datadir=/usr/share \
37 --localstatedir=/var \
38 --mandir=/usr/man \
39 --infodir=/usr/info \
40 );
41 touch $(AUTOMAKE_DIR)/.configured
42
43 $(AUTOMAKE_DIR)/$(AUTOMAKE_BINARY): $(AUTOMAKE_DIR)/.configured
44 $(MAKE) -C $(AUTOMAKE_DIR)
45 touch -c $(AUTOMAKE_DIR)/$(AUTOMAKE_BINARY)
46
47 $(TARGET_DIR)/$(AUTOMAKE_TARGET_BINARY): $(AUTOMAKE_DIR)/$(AUTOMAKE_BINARY)
48 $(MAKE) \
49 prefix=$(TARGET_DIR)/usr \
50 exec_prefix=$(TARGET_DIR)/usr \
51 bindir=$(TARGET_DIR)/usr/bin \
52 sbindir=$(TARGET_DIR)/usr/sbin \
53 libexecdir=$(TARGET_DIR)/usr/lib \
54 datadir=$(TARGET_DIR)/usr/share \
55 sysconfdir=$(TARGET_DIR)/etc \
56 localstatedir=$(TARGET_DIR)/var \
57 libdir=$(TARGET_DIR)/usr/lib \
58 infodir=$(TARGET_DIR)/usr/info \
59 mandir=$(TARGET_DIR)/usr/man \
60 includedir=$(TARGET_DIR)/usr/include \
61 -C $(AUTOMAKE_DIR) install;
62 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
63 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
64 touch -c $(TARGET_DIR)/$(AUTOMAKE_TARGET_BINARY)
65
66 automake: uclibc $(TARGET_DIR)/$(AUTOMAKE_TARGET_BINARY)
67
68 automake-clean:
69 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(AUTOMAKE_DIR) uninstall
70 -$(MAKE) -C $(AUTOMAKE_DIR) clean
71
72 automake-dirclean:
73 rm -rf $(AUTOMAKE_DIR)
74
This page took 0.044416 seconds and 5 git commands to generate.