summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-08-26 15:27:33 +0200
committerlassulus <lass@aidsballs.de>2015-08-26 15:27:33 +0200
commit034c5720fa86f19671b7c3987889c4e9a031cd92 (patch)
tree5d647060dcfaf0faff9883fc1c68d81ba41e4908
parentfca67ac0a55a9fed9985604b9b7fe49b8de5f843 (diff)
make download: make number of jobs configurable
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b5b7223..8ae48f3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,11 @@
+jobs = 2
+
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
download: ## download all links to ./music
- cat links | parallel -j4 -k "target=./music bin/yout2ogg"
+download: ## you can specify number of jobs with ex. jobs=4
+ cat links | parallel -j${jobs} -k "target=./music bin/yout2ogg"
add: ##make add url="http://youtube..."
add: ##to add link to ./links