summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 8ae48f3c5e3abada0f97ebbf1a90264d3d72a588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
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
	bin/youtplaylist ${url} >> links

check:        ## check for missing songs
check:        ## make download should be run first
	cat links | musicDir=./music xargs -n1 bin/checkMissing

play:         ## play the playlist without downloading
	mpv --loop=inf --shuffle --playlist links

copy:         ## make copy dest="/mnt/tmp/music"
copy:         ## to copy music to dest
	rsync -vrltD ./music/ ${dest}