[cpp-linbuild] 03/25: Create the SOURCEDIR as necessary

Scott Cantor cantor.2 at osu.edu
Mon Apr 5 12:46:46 UTC 2021


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository cpp-linbuild.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-linbuild.git;a=commit;h=55f856b3faee50a647e4689b802c175c1ad449a8

commit 55f856b3faee50a647e4689b802c175c1ad449a8
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Sun Dec 6 18:10:29 2020 -0500

    Create the SOURCEDIR as necessary
---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 6fb3fd5..83d2e0f 100644
--- a/Makefile
+++ b/Makefile
@@ -119,8 +119,9 @@ all: $(TARGETS)
 
 # Retreive the tarball for each component from its distfile URL
 define curl-distfile-component
-$(SOURCEDIR)/$$($(1)_DISTFILE):
-	(cd $(SOURCEDIR) && curl -O $$($(1)_URL))
+$$(SOURCEDIR)/$$($(1)_DISTFILE):
+	mkdir -p $$(SOURCEDIR)
+	(cd $$(SOURCEDIR) && curl -O $$($(1)_URL))
 endef
 
 $(foreach component,$(COMPONENTS),$(eval $(call curl-distfile-component,$(component))))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list