add setpwc package
[openwrt.git] / obsolete-buildroot / make / make.mk
1 #############################################################
2 #
3 # make
4 #
5 #############################################################
6 GNUMAKE_SOURCE:=make-3.80.tar.bz2
7 GNUMAKE_SITE:=ftp://ftp.gnu.org/gnu/make
8 GNUMAKE_DIR:=$(BUILD_DIR)/make-3.80
9 GNUMAKE_CAT:=bzcat
10 GNUMAKE_BINARY:=make
11 GNUMAKE_TARGET_BINARY:=usr/bin/make
12
13 $(DL_DIR)/$(GNUMAKE_SOURCE):
14 $(WGET) -P $(DL_DIR) $(GNUMAKE_SITE)/$(GNUMAKE_SOURCE)
15
16 make-source: $(DL_DIR)/$(GNUMAKE_SOURCE)
17
18 $(GNUMAKE_DIR)/.unpacked: $(DL_DIR)/$(GNUMAKE_SOURCE)
19 $(GNUMAKE_CAT) $(DL_DIR)/$(GNUMAKE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(GNUMAKE_DIR)/.unpacked
21
22 $(GNUMAKE_DIR)/.configured: $(GNUMAKE_DIR)/.unpacked
23 (cd $(GNUMAKE_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 $(DISABLE_NLS) \
41 $(DISABLE_LARGEFILE) \
42 );
43 touch $(GNUMAKE_DIR)/.configured
44
45 $(GNUMAKE_DIR)/$(GNUMAKE_BINARY): $(GNUMAKE_DIR)/.configured
46 $(MAKE) -C $(GNUMAKE_DIR)
47
48 $(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY): $(GNUMAKE_DIR)/$(GNUMAKE_BINARY)
49 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUMAKE_DIR) install
50 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
51 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
52
53 make: uclibc $(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY)
54
55 make-clean:
56 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUMAKE_DIR) uninstall
57 -$(MAKE) -C $(GNUMAKE_DIR) clean
58
59 make-dirclean:
60 rm -rf $(GNUMAKE_DIR)
61
This page took 0.041614 seconds and 5 git commands to generate.