aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg/Makefile
blob: c9f54c09a9984afb0e1efe5779af3255997eb5e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.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/

uninstall:
	+! ../check-installed ffmpeg
	-unlink -- ~/.local/bin/resize-and-transcode
	-unlink -- ~/.local/bin/resize-and-transcode-recursively