suspect umount may be causing reboot issues
[openwrt.git] / obsolete-buildroot / make / ed.mk
1 #############################################################
2 #
3 # ed
4 #
5 #############################################################
6 ED_SOURCE:=ed_0.2.orig.tar.gz
7 ED_PATCH:=ed_0.2-19.diff.gz
8 ED_SITE:=http://ftp.debian.org/debian/pool/main/e/ed
9 ED_CAT:=zcat
10 ED_DIR:=$(BUILD_DIR)/ed-0.2
11 ED_BINARY:=ed
12 ED_TARGET_BINARY:=bin/ed
13
14 $(DL_DIR)/$(ED_SOURCE):
15 $(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_SOURCE)
16
17 $(DL_DIR)/$(ED_PATCH):
18 $(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_PATCH)
19
20 ed-source: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
21
22 $(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
23 $(ED_CAT) $(DL_DIR)/$(ED_SOURCE) | tar -C $(BUILD_DIR) -xvf -
24 $(SOURCE_DIR)/patch-kernel.sh $(ED_DIR) $(DL_DIR) $(ED_PATCH)
25 touch $(ED_DIR)/.unpacked
26
27 $(ED_DIR)/.configured: $(ED_DIR)/.unpacked
28 (cd $(ED_DIR); rm -rf config.cache; \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS)" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 $(DISABLE_NLS) \
38 );
39 touch $(ED_DIR)/.configured
40
41 $(ED_DIR)/$(ED_BINARY): $(ED_DIR)/.configured
42 $(MAKE) CC=$(TARGET_CC) -C $(ED_DIR)
43
44 $(TARGET_DIR)/$(ED_TARGET_BINARY): $(ED_DIR)/$(ED_BINARY)
45 cp -a $(ED_DIR)/$(ED_BINARY) $(TARGET_DIR)/$(ED_TARGET_BINARY)
46
47 ed: uclibc $(TARGET_DIR)/$(ED_TARGET_BINARY)
48
49 ed-clean:
50 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(ED_DIR) uninstall
51 -$(MAKE) -C $(ED_DIR) clean
52
53 ed-dirclean:
54 rm -rf $(ED_DIR)
55
This page took 0.064218 seconds and 5 git commands to generate.