Commit 1f9999a8 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: Fix dependency generation

In case if no goals specified the all
goal is implied so don't forget to generate
deps. This as well fixes a problem where
two "make clean" in a row forced build system
to regenerate deps.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Looks-good-to: Stanislav Kinsbursky <skinsbursky@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 28a14747
...@@ -201,8 +201,16 @@ help: ...@@ -201,8 +201,16 @@ help:
$(E) ' test - Run zdtm test-suite' $(E) ' test - Run zdtm test-suite'
.PHONY: help .PHONY: help
deps-targets := %.o %.s %.i deps-targets := %.o %.s %.i $(PROGRAM) zdtm test-legacy
ifeq ($(filter deps-targets, $(MAKECMDGOALS)),) ifneq ($(filter $(deps-targets), $(MAKECMDGOALS)),)
INCDEPS := 1
endif
ifeq ($(MAKECMDGOALS),)
INCDEPS := 1
endif
ifeq ($(INCDEPS),1)
-include $(DEPS) -include $(DEPS)
endif endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment