Commit | Line | Data |
---|---|---|
310d0527 MW |
1 | #! /usr/bin/make -f |
2 | ||
3 | ## Silent-rules machinery. | |
4 | V = 0 | |
5 | V_CURL_0 = @echo " CURL $@"; | |
6 | ||
310d0527 | 7 | ## Main rule. |
c457f06e | 8 | %:; $(V_CURL_$V)curl -fsL -o$@.new $A "$B$*" && mv $@.new $@ |
310d0527 MW |
9 | |
10 | ## Help summary. | |
c457f06e | 11 | help:; @echo "Usage: bdl [-j NPROC] [A=ARGS] [B=BASE] URL..." |
310d0527 | 12 | .PHONY: help |