ref: 4e74e30bc95095d3969c2a0a75cb937db6b602b9
parent: afd505eead52b23675c15c00cead98b8c1d00646
author: Ralph Giles <giles@mozilla.com>
date: Wed Dec 30 21:04:18 EST 2015
mingw: Add fetch and realclean targets for downloading dependencies. For those who would like network access to be a separate step.
--- a/mingw/Makefile
+++ b/mingw/Makefile
@@ -34,7 +34,8 @@
# Generate rules to download and verify each dependency.
define WGET_template =
- # Generate unpacked tarball name from the url.
+ # Generate tarball name from the url.
+ DEP_TARBALLS += $$(notdir $$($(1)_URL))
$(1)_DIR := $$(basename $$(basename $$(notdir $$($(1)_URL))))
DEP_DIRS += $$($(1)_DIR)
@@ -57,6 +58,11 @@
$(1): $(1)_BUILD
endef
$(foreach dep,$(DEPS),$(eval $(call WGET_template,$(dep))))
+
+fetch: $(DEP_TARBALLS)
+
+realclean: clean
+ $(RM) $(DEP_TARBALLS)
# Build scripts for each specific target.