| 1 |
Description: Makefile support for DESTDIR and ROOT_DESTDIR |
| 2 |
Author: Kamal Mostafa <[email protected]> |
| 3 |
|
| 4 |
Allow Makefile's install directory DESTDIR (e.g. "/tmp/build_root/") to be set |
| 5 |
independently from ROOT_DESTDIR (e.g. "/usr") which will get embedded in the |
| 6 |
executable. |
| 7 |
|
| 8 |
--- a/Makefile |
| 9 |
+++ b/Makefile |
| 10 |
@@ -1,7 +1,8 @@ |
| 11 |
# ebook2cw Makefile -- Fabian Kurz, DJ5CW -- http://fkurz.net/ham/ebook2cw.html |
| 12 |
|
| 13 |
VERSION=0.8.5 |
| 14 |
-DESTDIR ?= /usr |
| 15 |
+ROOT_DESTDIR?=/usr |
| 16 |
+override DESTDIR:=$(DESTDIR)$(ROOT_DESTDIR) |
| 17 |
|
| 18 |
# Set to NO to compile without Lame/Ogg-vorbis support |
| 19 |
USE_LAME?=YES |