[PATCH] Makefile: Also install libcriu.so and headers
Adrian Reber
adrian at lisas.de
Tue Feb 4 01:26:21 PST 2014
Signed-off-by: Adrian Reber <adrian at lisas.de>
---
Makefile | 5 +++++
Makefile.inc | 2 ++
2 files changed, 7 insertions(+)
diff --git a/Makefile b/Makefile
index f8ee59a..985b8c9 100644
--- a/Makefile
+++ b/Makefile
@@ -104,6 +104,7 @@ CFLAGS += $(WARNINGS) $(DEFINES)
SYSCALL-LIB := arch/$(ARCH)/syscalls.built-in.o
ARCH-LIB := arch/$(ARCH)/crtools.built-in.o
CRIU-LIB := lib/libcriu.so
+CRIU-INC := lib/criu.h include/criu-plugin.h include/criu-log.h protobuf/rpc.proto
export CC MAKE CFLAGS LIBS ARCH DEFINES MAKEFLAGS
export SRC_DIR SYSCALL-LIB SH RM ARCH_DIR OBJCOPY LDARCH LD
@@ -233,6 +234,10 @@ install: $(PROGRAM) install-man
$(E) " INSTALL " $(PROGRAM)
$(Q) mkdir -p $(DESTDIR)$(SBINDIR)
$(Q) install -m 755 $(PROGRAM) $(DESTDIR)$(SBINDIR)
+ $(Q) mkdir -p $(DESTDIR)$(LIBDIR)
+ $(Q) install -m 755 $(CRIU-LIB) $(DESTDIR)$(LIBDIR)
+ $(Q) mkdir -p $(DESTDIR)$(INCLUDEDIR)
+ $(Q) install -m 644 $(CRIU-INC) $(DESTDIR)$(INCLUDEDIR)
$(Q) mkdir -p $(DESTDIR)$(SYSTEMDUNITDIR)
$(Q) install -m 644 scripts/sd/criu.socket $(DESTDIR)$(SYSTEMDUNITDIR)
$(Q) install -m 644 scripts/sd/criu.service $(DESTDIR)$(SYSTEMDUNITDIR)
diff --git a/Makefile.inc b/Makefile.inc
index 87a267a..032a99a 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -15,3 +15,5 @@ PREFIX := /usr/local
SBINDIR := $(PREFIX)/sbin
MANDIR := $(PREFIX)/share/man
SYSTEMDUNITDIR := $(PREFIX)/lib/systemd/system/
+LIBDIR := $(PREFIX)/lib
+INCLUDEDIR := $(PREFIX)/include/criu
--
1.8.5.3
--MrbiU6dcJfOZ616B--
More information about the CRIU
mailing list