fix 'Preparing...' message for V=5 compile
[openwrt.git] / openwrt / target / lzma / Makefile
1 #############################################################
2 #
3 # lzma target
4 #
5 #############################################################
6
7 include $(TOPDIR)/rules.mk
8
9 LZMA_DIR=$(BUILD_DIR)/lzma
10 LZMA_SOURCE=lzma406.zip
11 LZMA_SITE=http://www.7-zip.org/dl
12 LZMA_MD5=a09378411cba5f786b5c49c9c58496df
13
14 LZMA_LIB_DIR=$(LZMA_DIR)/SRC/7zip/Compress/LZMA_Lib
15 LZMA_ALONE_DIR=$(LZMA_DIR)/SRC/7zip/Compress/LZMA_Alone
16
17 TARGETS=$(LZMA_LIB_DIR)/liblzma.a $(LZMA_ALONE_DIR)/lzma
18
19 $(DL_DIR)/$(LZMA_SOURCE):
20 @$(PKG_TRACE) Downloading...
21 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LZMA_SOURCE) $(LZMA_MD5) $(LZMA_SITE) $(MAKE_TRACE)
22
23 $(LZMA_DIR)/.unpacked: $(DL_DIR)/$(LZMA_SOURCE)
24 @$(PKG_TRACE) Preparing...
25 @rm -rf $(LZMA_DIR) && mkdir -p $(LZMA_DIR)
26 unzip -q $^ -d $(LZMA_DIR)
27 patch -d $(LZMA_DIR) -p1 < lzma-406-zlib-stream.patch $(MAKE_TRACE)
28 touch $(LZMA_DIR)/.unpacked
29
30 $(LZMA_ALONE_DIR)/lzma $(LZMA_LIB_DIR)/liblzma.a: $(LZMA_DIR)/.built
31 $(LZMA_DIR)/.built: $(LZMA_DIR)/.unpacked
32 @$(PKG_TRACE) Compiling...
33 $(MAKE) -C $(LZMA_LIB_DIR) $(MAKE_TRACE)
34 $(MAKE) -C $(LZMA_ALONE_DIR) $(MAKE_TRACE)
35 touch $@
36
37 lzma: $(TARGETS)
38 cp -f $^ $(LZMA_DIR)
39
40 lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
41
42 lzma-clean:
43 @$(PKG_TRACE) Cleaining...
44 -$(MAKE) -C $(LZMA_LIB_DIR) clean $(MAKE_TRACE)
45 -$(MAKE) -C $(LZMA_ALONE_DIR) clean $(MAKE_TRACE)
46 rm -f $(LZMA_DIR)/liblzma.a $(LZMA_DIR)/lzma
47
48 lzma-dirclean:
49 rm -rf $(LZMA_DIR)
50
51 #############################################################
52
53 prepare: $(LZMA_DIR)/.unpacked
54 compile: lzma
55 install: lzma
56 cp $(LZMA_DIR)/lzma $(STAGING_DIR)/bin/
57 clean: lzma-dirclean
This page took 0.0406 seconds and 5 git commands to generate.