Installing MakeMKV on Linux with a Makefile.

Use the following Makefile to download, compile and install MakeMKV on Linux. just adjust the version to the current version, which you get from the download page.

V=1.14.3

install: oss bin

deps:
	sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev libqt4-dev zlib1g-dev

makemkv-oss-$(V).tar.gz:
	wget http://www.makemkv.com/download/makemkv-oss-$(V).tar.gz

makemkv-bin-$(V).tar.gz:
	wget http://www.makemkv.com/download/makemkv-bin-$(V).tar.gz

oss: makemkv-oss-$(V).tar.gz deps
	tar xf $<
	cd makemkv-oss-*/ && ./configure && $(MAKE) && sudo $(MAKE) install

bin: makemkv-bin-$(V).tar.gz deps
	tar xf $<
	cd makemkv-bin-*/ && $(MAKE) && sudo $(MAKE) install

clean:
	rm -rfv makemkv-*