Makefile: don't include *.d's before 'all'

Include any .d file from the build directory, and do that after all the
other targets

Signed-off-by: Michel Pollet <buserror@gmail.com>
This commit is contained in:
Michel Pollet
2016-09-30 16:31:47 +01:00
committed by Patrick J Cherry
parent fcd3d33498
commit d9651a038c

View File

@@ -55,9 +55,6 @@ LINK=$(CC) $(LLDFLAGS) -Isrc $(LIBS)
LIB=build/
EXISTING_OBJS := $(wildcard build/*.o)
-include $(EXISTING_OBJS:.o=.d)
COMMON_SRC := $(wildcard src/common/*.c)
SERVER_SRC := $(wildcard src/server/*.c)
PROXY_SRC := $(wildcard src/proxy/*.c)
@@ -112,7 +109,6 @@ build/flexnbd-proxy.1: README.proxy.txt
%.1.gz: %.1
gzip -c -f $< > $@
server-man: build/flexnbd.1.gz
proxy-man: build/flexnbd-proxy.1.gz
@@ -127,3 +123,6 @@ clean:
.PHONY: clean objs check_objs all server proxy check_bins check server-man proxy-man doc
# Include extra dependencies at the end, NOT before 'all'
-include $(wildcard build/*.d)