Prepate_port: create directories when downloading bare files

Ref #2718
This commit is contained in:
Emery Hemingway 2018-03-16 10:48:02 +01:00 committed by Christian Helmuth
parent b60fd14679
commit c3b483d12a

View File

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