2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00

Makefile: install criu-ns only with python3

Python 2 has been deprecated since January 1, 2020 and linux distributions
already support Python 3. Thus, to simplify maintenance and packaging
we could support criu-ns as Python 3 only.

v2: Add a message for criu-ns installation

Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
This commit is contained in:
Radostin Stoyanov 2021-09-28 09:49:23 +01:00 committed by Andrei Vagin
parent a15a63fce0
commit f2cdb062aa
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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: