mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
crit: add install-crit target to Makefile
install-crit uses scripts/crit-setup.py install --prefix=$(DESTDIR) to act the way the install target expects it too. Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
def0f49177
commit
ec9ab827b1
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,3 +27,4 @@ pie/pie.lds.S
|
||||
include/config.h
|
||||
protobuf-desc-gen.h
|
||||
criu.pc
|
||||
build
|
||||
|
11
Makefile
11
Makefile
@ -148,7 +148,7 @@ ifeq ($(GCOV),1)
|
||||
%.o $(PROGRAM): override CFLAGS += --coverage
|
||||
endif
|
||||
|
||||
all: config pie $(VERSION_HEADER) $(CRIU-LIB)
|
||||
all: config pie $(VERSION_HEADER) $(CRIU-LIB) crit
|
||||
$(Q) $(MAKE) $(PROGRAM)
|
||||
|
||||
protobuf/%::
|
||||
@ -231,6 +231,7 @@ clean: clean-built
|
||||
$(Q) $(MAKE) -C test $@
|
||||
$(Q) $(MAKE) -C pycriu $@
|
||||
$(Q) $(RM) ./*.pyc
|
||||
$(Q) $(RM) -r build
|
||||
|
||||
distclean: clean
|
||||
$(E) " DISTCLEAN"
|
||||
@ -257,7 +258,7 @@ criu-$(CRTOOLSVERSION).tar.bz2:
|
||||
v$(CRTOOLSVERSION) | bzip2 > $@
|
||||
.PHONY: dist tar
|
||||
|
||||
install: $(PROGRAM) $(CRIU-LIB) install-man
|
||||
install: $(PROGRAM) $(CRIU-LIB) install-man install-crit
|
||||
$(E) " INSTALL " $(PROGRAM)
|
||||
$(Q) mkdir -p $(DESTDIR)$(SBINDIR)
|
||||
$(Q) install -m 755 $(PROGRAM) $(DESTDIR)$(SBINDIR)
|
||||
@ -285,7 +286,11 @@ install: $(PROGRAM) $(CRIU-LIB) install-man
|
||||
install-man:
|
||||
$(Q) $(MAKE) -C Documentation install
|
||||
|
||||
.PHONY: install install-man
|
||||
install-crit: crit
|
||||
$(E) " INSTALL crit"
|
||||
$(Q) python scripts/crit-setup.py install --prefix=$(DESTDIR)
|
||||
|
||||
.PHONY: install install-man install-crit
|
||||
|
||||
help:
|
||||
@echo ' Targets:'
|
||||
|
Loading…
x
Reference in New Issue
Block a user