diff --git a/Documentation/Makefile b/Documentation/Makefile index edadfb81c..82257c66a 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -12,7 +12,9 @@ endif FOOTER := footer.txt SRC1 += crit.txt +ifeq ($(PYTHON),python3) SRC1 += criu-ns.txt +endif SRC1 += compel.txt SRC8 += criu.txt SRC := $(SRC1) $(SRC8) diff --git a/criu/Makefile b/criu/Makefile index c7ac94d6a..db4e9d81f 100644 --- a/criu/Makefile +++ b/criu/Makefile @@ -144,7 +144,10 @@ install: $(obj)/criu $(Q) install -m 644 $(UAPI_HEADERS) $(DESTDIR)$(INCLUDEDIR)/criu/ $(Q) mkdir -p $(DESTDIR)$(LIBEXECDIR)/criu/scripts $(Q) install -m 755 scripts/systemd-autofs-restart.sh $(DESTDIR)$(LIBEXECDIR)/criu/scripts +ifeq ($(PYTHON),python3) + $(E) " INSTALL " scripts/criu-ns $(Q) install -m 755 scripts/criu-ns $(DESTDIR)$(SBINDIR) +endif .PHONY: install uninstall: