summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-16 18:17:39 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-16 18:17:39 +0000
commit0a9af49e0b41dc66ce0bb0d583b0241a882f2700 (patch)
treebf52255998d07b980f0ef7aea862eaf456dbb3fc /package
parentceef40146f64415e3e046f724029b3e13544ecaf (diff)
Ensure lzma is built *before* linux, allow system installation in /usr/local/bin
Diffstat (limited to 'package')
-rw-r--r--package/lzma/lzma.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/lzma/lzma.mk b/package/lzma/lzma.mk
index 6e122eb30..ec876da75 100644
--- a/package/lzma/lzma.mk
+++ b/package/lzma/lzma.mk
@@ -48,11 +48,20 @@ $(STAGING_DIR)/bin/lzma: $(LZMA_HOST_DIR)/src/lzma/lzma
$(STAGING_DIR)/lib/liblzmadec.la
lzma-host: $(STAGING_DIR)/bin/lzma
+
lzma-host-clean:
rm -f $(STAGING_DIR)/bin/lzma
-$(MAKE) -C $(LZMA_HOST_DIR) clean
lzma-host-dirclean:
rm -rf $(LZMA_HOST_DIR)
+
+/usr/local/bin/lzma: lzma_host
+ sudo $(MAKE) DESTDIR=/usr/local -C $(LZMA_HOST_DIR) install
+ sudo $(SED) "s,^libdir=.*,libdir=\'/usr/local/lib\',g" \
+ /usr/local/lib/liblzmadec.la
+
+lzma-host-install: /usr/local/bin/lzma
+
######################################################################
#
# lzma target