Commit d1df3f60 authored by Stanislav Kinsbursky's avatar Stanislav Kinsbursky Committed by Cyrill Gorcunov

make: cleanup deps files usage

Objects does not depend on dep files. Dep files provide rules to build object
files. Thus we need to include dep files.
This also leads make to rebuild dep files (if required) before an other
targets.
Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@parallels.com>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent b8f57e0b
...@@ -111,7 +111,6 @@ $(HEAD-BLOB-GEN): $(HEAD-BIN) $(DEPS-BLOB) ...@@ -111,7 +111,6 @@ $(HEAD-BLOB-GEN): $(HEAD-BIN) $(DEPS-BLOB)
$(HEAD-BIN) > parasite-blob.h $(HEAD-BIN) > parasite-blob.h
$(Q) sync $(Q) sync
$(OBJS): $(DEPS) $(HEAD-BLOB-GEN)
%.o: %.c %.o: %.c
$(E) " CC " $@ $(E) " CC " $@
$(Q) $(CC) -c $(CFLAGS) $< -o $@ $(Q) $(CC) -c $(CFLAGS) $< -o $@
...@@ -163,3 +162,5 @@ cscope: ...@@ -163,3 +162,5 @@ cscope:
$(Q) $(FIND) . -name '*.[hcS]' -print > cscope.files $(Q) $(FIND) . -name '*.[hcS]' -print > cscope.files
$(Q) $(CSCOPE) -bkqu $(Q) $(CSCOPE) -bkqu
.PHONY: cscope .PHONY: cscope
-include $(DEPS)
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