Description: Makefile support for DESTDIR and ROOT_DESTDIR Author: Kamal Mostafa Allow Makefile's install directory DESTDIR (e.g. "/tmp/build_root/") to be set independently from ROOT_DESTDIR (e.g. "/usr") which will get embedded in the executable. --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ # ebook2cw Makefile -- Fabian Kurz, DJ5CW -- http://fkurz.net/ham/ebook2cw.html VERSION=0.8.5 -DESTDIR ?= /usr +ROOT_DESTDIR?=/usr +override DESTDIR:=$(DESTDIR)$(ROOT_DESTDIR) # Set to NO to compile without Lame/Ogg-vorbis support USE_LAME?=YES