[csw-devel] SF.net SVN: gar:[11356] csw/mgar/gar/v2/gar.lib.mk
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Thu Oct 21 13:30:27 CEST 2010
Revision: 11356
http://gar.svn.sourceforge.net/gar/?rev=11356&view=rev
Author: dmichelsen
Date: 2010-10-21 11:30:26 +0000 (Thu, 21 Oct 2010)
Log Message:
-----------
mGAR v2: Add lzma support
Modified Paths:
--------------
csw/mgar/gar/v2/gar.lib.mk
Modified: csw/mgar/gar/v2/gar.lib.mk
===================================================================
--- csw/mgar/gar/v2/gar.lib.mk 2010-10-21 09:34:39 UTC (rev 11355)
+++ csw/mgar/gar/v2/gar.lib.mk 2010-10-21 11:30:26 UTC (rev 11356)
@@ -339,6 +339,12 @@
@lzip -dc $(DOWNLOADDIR)/$* | gtar $(TAR_ARGS) -xf - -C $(EXTRACTDIR)
@$(MAKECOOKIE)
+# rule to extract files with tar and lzma
+tar-lzma-extract-%:
+ @echo " ==> Extracting $(DOWNLOADDIR)/$*"
+ @lzma -dc $(DOWNLOADDIR)/$* | gtar $(TAR_ARGS) -xf - -C $(EXTRACTDIR)
+ @$(MAKECOOKIE)
+
# extract compressed single files
gz-extract-%:
@echo " ==> Decompressing $(DOWNLOADDIR)/$*"
@@ -364,6 +370,12 @@
@lzip -d $(WORKDIR)/$*
@$(MAKECOOKIE)
+lzma-extract-%:
+ @echo " ==> Decompressing $(DOWNLOADDIR)/$*"
+ @cp $(DOWNLOADDIR)/$* $(WORKDIR)/
+ @lzma -d $(WORKDIR)/$*
+ @$(MAKECOOKIE)
+
# extra dependency rule for git repos, that will allow the user
# to supply an alternate target at their discretion
git-extract-%:
@@ -431,6 +443,9 @@
extract-archive-%.tar.lz: tar-lz-extract-%.tar.lz
@$(MAKECOOKIE)
+extract-archive-%.tar.lzma: tar-lzma-extract-%.tar.lzma
+ @$(MAKECOOKIE)
+
extract-archive-%.zip: zip-extract-%.zip
@$(MAKECOOKIE)
@@ -452,6 +467,9 @@
extract-archive-%.lz: lz-extract-%.lz
@$(MAKECOOKIE)
+extract-archive-%.lzma: lzma-extract-%.lzma
+ @$(MAKECOOKIE)
+
extract-archive-%.git: git-extract-%.git
@$(MAKECOOKIE)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list