aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg/Makefile
blob: 2c472b0dca9d9169fd9e78e11f122fd192de95d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.POSIX:

install:
	../check-installed-shebang resize-and-transcode
	../check-installed-shebang resize-and-transcode-recursively
	../check-in-path rmdir test rm mv mkdir printf sed grep rev cut ffprobe ffmpeg stat
	../check-in-path wc && test "$$(stat -c '%s' ../README)" = "$$(wc -c < ../README | cut -d ' ' -f 1)"
	mkdir -p -- ~/.local/bin
	ln -sf -- ~/.dotfiles/ffmpeg/resize-and-transcode ~/.local/bin/
	ln -sf -- ~/.dotfiles/ffmpeg/resize-and-transcode-recursively ~/.local/bin/
	mkdir -p -- ~/.config/bash/aliases.d
	test ! -e ~/.config/bash/aliases.d/ffmpeg || test -L ~/.config/bash/aliases.d/ffmpeg
	ln -sf -- ~/.dotfiles/ffmpeg/bash-aliases ~/.config/bash/aliases.d/ffmpeg

uninstall:
	+! ../check-installed ffmpeg
	-unlink -- ~/.config/bash/aliases.d/ffmpeg
	-rmdir -- ~/.config/bash/aliases.d
	-unlink -- ~/.local/bin/resize-and-transcode
	-unlink -- ~/.local/bin/resize-and-transcode-recursively