summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
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