From: Tomáš Golembiovský Date: Tue, 5 Dec 2017 13:57:56 +0000 (+0100) Subject: Makefile: add support for curl X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=79f5316046a8be5b7bd22ab591c941382f2ede70;p=nbdkit-plugin-vddk.git Makefile: add support for curl Support curl as an alternative to wget. Signed-off-by: Tomáš Golembiovský --- diff --git a/Makefile b/Makefile index 7a22647..c38dcb1 100644 --- a/Makefile +++ b/Makefile @@ -59,9 +59,11 @@ Makefile.tools: fi @if wget --help >/dev/null 2>&1; then \ echo 'DOWNLOAD=wget -O -' >> $@-t; \ + elif curl --help >/dev/null 2>&1; then \ + echo 'DOWNLOAD=curl -L' >> $@-t; \ else \ - echo -n "‘wget’ not installed or not working."; \ - echo "Install the ‘wget’ package."; \ + echo -n "‘wget’ nor ‘curl’ is installed and working."; \ + echo "Install the ‘wget’ or ‘curl’ package."; \ exit 1; \ fi @mv $@-t $@