Skip to content

Commit

Permalink
Add/rename manual download target
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Bean committed Apr 12, 2016
1 parent 990d85a commit e452fea
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions mk/spksrc.download.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ PRE_DOWNLOAD_TARGET = pre_download_target
else
$(PRE_DOWNLOAD_TARGET): download_msg
endif
ifneq (,$(findstring nop,$(strip $(DOWNLOAD_TARGET))))
DOWNLOAD_TARGET = nop_download_target
ifneq (,$(findstring manual,$(strip $(DOWNLOAD_TARGET))))
DOWNLOAD_TARGET = manual_dl_target
else
ifeq ($(strip $(DOWNLOAD_TARGET)),)
DOWNLOAD_TARGET = download_target
Expand All @@ -37,16 +37,16 @@ endif

download_msg:
@$(MSG) "Downloading files for $(NAME)"
nop_download_target:
@nop_file=$(PKG_DIST_FILE) ; \
if [ -z "$$nop_file" ] ; then \
nop_file=$(PKG_DIST_NAME) ; \

manual_dl_target:
@manual_dl=$(PKG_DIST_FILE) ; \
if [ -z "$$manual_dl" ] ; then \
manual_dl=$(PKG_DIST_NAME) ; \
fi ; \
if [ -f "$(DISTRIB_DIR)/$$nop_file" ] ; then \
$(MSG) "File $$nop_file already downloaded" ; \
if [ -f "$(DISTRIB_DIR)/$$manual_dl" ] ; then \
$(MSG) "File $$manual_dl already downloaded" ; \
else \
$(MSG) "Please download $$nop_file manually from $(PKG_DIST_SITE), and place in $(DISTRIB_DIR)" ; \
$(MSG) "*** Manually download $$manual_dl from $(PKG_DIST_SITE) and place in $(DISTRIB_DIR). Stop." ; \
exit 1 ; \
fi ; \

Expand Down

0 comments on commit e452fea

Please sign in to comment.