2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-28 12:57:57 +00:00

zdtm: Force lib to be built before live targets

It's ugly but should work for now. Strictly speaking
I need to rework the complete make engine used in
zdtm.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Tested-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2014-01-20 14:14:27 +04:00 committed by Pavel Emelyanov
parent e970fccb69
commit d01025edd9
2 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,15 @@
SUBDIRS = lib live
default: all
.PHONY: default
.PHONY: default lib live
lib:
$(MAKE) -C lib all
live: lib
$(MAKE) -C live all
all: lib live
@true
%:
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done

View File

@ -18,7 +18,8 @@ all: $(LIB)
install: all
.PHONY: all install
$(LIB): $(LIB)(${LIBOBJ})
$(LIB): $(LIBOBJ)
$(Q) ar rv $@ $^
clean:
$(RM) -f $(LIBOBJ) $(LIB) *~