From 4e74e30bc95095d3969c2a0a75cb937db6b602b9 Mon Sep 17 00:00:00 2001 From: Ralph Giles <giles@mozilla.com> Date: Thu, 31 Dec 2015 02:04:18 -0800 Subject: [PATCH] mingw: Add fetch and realclean targets for downloading dependencies. For those who would like network access to be a separate step. --- mingw/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mingw/Makefile b/mingw/Makefile index 881974a..a75ab8f 100644 --- a/mingw/Makefile +++ b/mingw/Makefile @@ -34,7 +34,8 @@ clean: # 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) @@ -58,6 +59,11 @@ define WGET_template = endef $(foreach dep,$(DEPS),$(eval $(call WGET_template,$(dep)))) +fetch: $(DEP_TARBALLS) + +realclean: clean + $(RM) $(DEP_TARBALLS) + # Build scripts for each specific target. # NOTE: 'make check' generally requires wine with cross-compiling. -- GitLab