Prepate_port: create directories when downloading bare files

Ref #2718
This commit is contained in:
Ehmry - 2018-03-16 10:48:02 +01:00 committed by Christian Helmuth
parent b60fd14679
commit c3b483d12a
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ _file_name = $(call _prefer,$(NAME($1)),$(notdir $(URL($1))))
%.file:
$(VERBOSE)test -n "$(URL($*))" ||\
($(ECHO) "Error: Undefined URL for $(call _file_name,$*)"; false);
$(VERBOSE)mkdir -p $(dir $(call _file_name,$*))
$(VERBOSE)name=$(call _file_name,$*);\
(test -f $$name || $(MSG_DOWNLOAD)$(URL($*))); \
(test -f $$name || wget --quiet --no-check-certificate $(URL($*)) -O $$name) || \