make: scripts/Makefile.build -- Add $deps-after variable to order deps creation

Since we generate some headers the deps creation may
need to be ordered, thus add deps-after variable
for this case.

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 2013-02-19 15:46:12 +04:00 committed by Pavel Emelyanov
parent 55412e0d16
commit 379a5d311d

View file

@ -5,6 +5,7 @@ MAKEFLAGS := -r -R --no-print-directory
targets :=
deps :=
deps-after :=
all-objs :=
incdeps :=
_all :=
@ -161,6 +162,9 @@ endif
##
## Include deps if requested
ifneq ($(incdeps),)
ifneq ($(deps-after),)
$(deps): | $(deps-after)
endif
-include $(deps)
endif