[Devel] [PATCH 1/4] user-cr: Add install prefix
Matt Helsley
matthltc at us.ibm.com
Fri Feb 26 10:56:39 PST 2010
Add an install prefix rather than require setting both
BIN_INSTALL_DIR and LIB_INSTALL_DIR.
Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
Makefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index b312358..a8f426a 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,9 @@ WARNS := -Wall -Wstrict-prototypes -Wno-trigraphs
CFLAGS += -g $(WARNS) $(CKPT_INCLUDE) $(DEBUG)
# install dir
-BIN_INSTALL_DIR = /bin
-LIB_INSTALL_DIR = /lib
+PREFIX ?= /usr/local
+BIN_INSTALL_DIR := $(PREFIX)/bin
+LIB_INSTALL_DIR := $(PREFIX)/lib
ECLONE_PROGS = restart nsexec
PROGS = checkpoint ckptinfo $(ECLONE_PROGS)
--
1.6.3.3
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list