update to new upstream release (v0.1.0.15)
[openwrt.git] / obsolete-buildroot / make / less.mk
1 #############################################################
2 #
3 # less
4 #
5 #############################################################
6 LESS_SOURCE=less-381.tar.gz
7 LESS_SITE=http://www.greenwoodsoftware.com/less
8 LESS_DIR=$(BUILD_DIR)/less-381
9 LESS_BINARY=less
10 LESS_TARGET_BINARY=usr/bin/less
11
12 $(DL_DIR)/$(LESS_SOURCE):
13 $(WGET) -P $(DL_DIR) $(LESS_SITE)/$(LESS_SOURCE)
14
15 $(LESS_DIR)/.source: $(DL_DIR)/$(LESS_SOURCE)
16 zcat $(DL_DIR)/$(LESS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
17 touch $(LESS_DIR)/.source
18
19 $(LESS_DIR)/.configured: $(LESS_DIR)/.source
20 (cd $(LESS_DIR); \
21 $(TARGET_CONFIGURE_OPTS) \
22 ./configure \
23 --target=$(GNU_TARGET_NAME) \
24 --host=$(GNU_TARGET_NAME) \
25 --build=$(GNU_HOST_NAME) \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 );
29 touch $(LESS_DIR)/.configured;
30
31 $(LESS_DIR)/$(LESS_BINARY): $(LESS_DIR)/.configured
32 $(MAKE) CC=$(TARGET_CC) -C $(LESS_DIR)
33
34 $(TARGET_DIR)/$(LESS_TARGET_BINARY): $(LESS_DIR)/$(LESS_BINARY)
35 $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LESS_DIR) install
36 rm -Rf $(TARGET_DIR)/usr/man
37
38 less: uclibc $(TARGET_DIR)/$(LESS_TARGET_BINARY)
39
40 less-source: $(DL_DIR)/$(LESS_SOURCE)
41
42 less-clean:
43 $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LESS_DIR) uninstall
44 -$(MAKE) -C $(LESS_DIR) clean
45
46 less-dirclean:
47 rm -rf $(LESS_DIR)
48
This page took 0.0559 seconds and 5 git commands to generate.