diff options
author | Dmitry Safonov <dsafonov@virtuozzo.com> | 2016-07-18 22:22:48 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@virtuozzo.com> | 2016-08-01 18:38:32 +0300 |
commit | 7a3604845d50e6a203d09a47b4d3fccf33dd9c30 (patch) | |
tree | d5601c0d29338c0f10d3093c6119f344f13fe540 /Makefile.install | |
parent | a9a62403135e2b68fe49b7061a0d6555fc5c8af1 (diff) |
build/make: return to make from top directory
It looks like, there is not so much that needs to be fixed for
building criu from a top directory.
After the patch it's possible to do `make criu/mount.o` i.e.
It will build protobuf, compel as dependencies (if they are not built),
but no more from criu objects. If something breaks, you can
do make from vim and jump to error. Nice.
Mostly the patch corrects pathes to objects - I tried to make them
depend on $(obj) or $(SRC_DIR)/criu, where it's possible.
After it tested:
`make -j 10`, `make criu/log.o`, `make clean`, `make mrproper`,
`make install DESTDIR=/tmp/criu`, `make uninstall DESTDIR=/tmp/criu`
Note: I improperly called v1 for this patch as "return to make from
top Makefile" -- but I didn't mean that (and it was friday ;)
This patch doesn't yet switch to top-Makefile building, but that's
a step in that way (building from a top Makefile needs correct pathes
in makefiles) which also adds ability to build objects in subdirectories
and etc.
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'Makefile.install')
-rw-r--r-- | Makefile.install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.install b/Makefile.install index e3dd55141..dbc22e116 100644 --- a/Makefile.install +++ b/Makefile.install @@ -43,7 +43,7 @@ install-lib: lib .PHONY: install-lib install-criu: criu - $(Q) $(MAKE) -C criu install + $(Q) $(MAKE) $(build)=criu install .PHONY: install-criu install: install-man install-lib install-criu |