X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/015124ea4f42aa2cf8edeb8c8cc2fc9a7d48fe3d..8ce4375c1a088f26f6a42f7eb44963b91f63f132:/include/download.mk diff --git a/include/download.mk b/include/download.mk index 7a4d90da9..a50a5e936 100644 --- a/include/download.mk +++ b/include/download.mk @@ -5,13 +5,13 @@ # See /LICENSE for more information. # -DOWNLOAD_RDEP:=$(STAMP_PREPARED) +DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED) # Try to guess the download method from the URL define dl_method $(strip \ $(if $(2),$(2), \ - $(if $(filter @GNOME/% @GNU/% @KERNEL/% @SF/% ftp://% http://%,$(1)),default, \ + $(if $(filter @GNOME/% @GNU/% @KERNEL/% @SF/% ftp://% http://% file://%,$(1)),default, \ $(if $(filter git://%,$(1)),git, \ $(if $(filter svn://%,$(1)),svn, \ $(if $(filter cvs://%,$(1)),cvs, \ @@ -53,7 +53,7 @@ define DownloadMethod/cvs cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ - cvs -d $(URL) co -r $(VERSION) $(SUBDIR) && \ + cvs -d $(URL) co $(VERSION) $(SUBDIR) && \ find $(SUBDIR) -name CVS | xargs rm -rf && \ echo "Packing checkout..." && \ $(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ @@ -132,7 +132,9 @@ define Download endif ) - $(if $(DOWNLOAD_RDEP),$(DOWNLOAD_RDEP): $(DL_DIR)/$(FILE)) + $(foreach dep,$(DOWNLOAD_RDEP), + $(dep): $(DL_DIR)/$(FILE) + ) download: $(DL_DIR)/$(FILE) $(DL_DIR)/$(FILE):