From 0f453c18ab0c19ac8a63298e1c82957516fe5208 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 22 Feb 2017 15:15:42 -0800 Subject: [PATCH] lib Makefiles: integrate Our whole system of Makefiles are integrated from top to bottom, meaning: 1. The paths in sub-makefiles are relative to the top source dir. 2. Sub-makefiles are executed via make $(build)= For some reason, makefiles under lib/ are the exclusion. Let's fix it. Side effect: you can now build any individual target under lib/, for example, "make lib/c/libcriu.so" works. [v2: use the .FORCE, thanks to dsafonov@] Signed-off-by: Kir Kolyshkin Reviewed-by: Dmitry Safonov Signed-off-by: Andrei Vagin --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d3a830630..a9930e917 100644 --- a/Makefile +++ b/Makefile @@ -262,6 +262,7 @@ clean: subclean $(Q) $(MAKE) $(build)=lib $@ $(Q) $(MAKE) $(build)=compel $@ $(Q) $(MAKE) $(build)=compel/plugins $@ + $(Q) $(MAKE) $(build)=lib $@ .PHONY: clean # mrproper depends on clean in nmk