From 034c5720fa86f19671b7c3987889c4e9a031cd92 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 26 Aug 2015 15:27:33 +0200 Subject: make download: make number of jobs configurable --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3