diff options
author | Adrian Reber <areber@redhat.com> | 2018-05-16 09:20:24 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@virtuozzo.com> | 2018-07-09 18:25:16 +0300 |
commit | 4feb07020dedbf845fc00268d8ca02f4645641cd (patch) | |
tree | 9a0d84f98b25660ddeab0f029ed9d46ee6f7c49a /Makefile | |
parent | 1a0ad1ae8748baa2b0db3ef60848bccb1198bb20 (diff) |
crit: enable python2 or python3 based crit
With this last commit of the crit with python3 series it is possible to
either use python2 or python3 with CRIU.
Now the basic build system functionality (make and make install) are
python2/python3 aware. zdtm.py and criu-coredump are still python2, but
as they are not part of 'make install' those parts have not yet been
ported from python2 to python3.
Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -127,7 +127,7 @@ HOSTCFLAGS += $(WARNINGS) $(DEFINES) -iquote include/ export CFLAGS USERCLFAGS HOSTCFLAGS # Default target -all: criu lib +all: criu lib crit .PHONY: all # @@ -228,14 +228,22 @@ criu: $(criu-deps) $(Q) $(MAKE) $(build)=criu all .PHONY: criu +crit/Makefile: ; +crit/%: criu .FORCE + $(Q) $(MAKE) $(build)=crit $@ +crit: criu + $(Q) $(MAKE) $(build)=crit all +.PHONY: crit + + # -# Libraries next once criu it ready +# Libraries next once crit it ready # (we might generate headers and such # when building criu itself). lib/Makefile: ; -lib/%: criu .FORCE +lib/%: crit .FORCE $(Q) $(MAKE) $(build)=lib $@ -lib: criu +lib: crit $(Q) $(MAKE) $(build)=lib all .PHONY: lib @@ -247,6 +255,7 @@ clean mrproper: $(Q) $(MAKE) $(build)=compel $@ $(Q) $(MAKE) $(build)=compel/plugins $@ $(Q) $(MAKE) $(build)=lib $@ + $(Q) $(MAKE) $(build)=crit $@ .PHONY: clean mrproper clean-top: |