build: fix dependencies for files compiled from their parent directory

The use of $(basename ...) here was wrong (yet I'm sure I tested it).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Jan Beulich committed 2015-11-26 15:50:07 +01:00
1 parent bdead3f25b
commit 08f3fad0f3
1 file changed
+1 -1
+1 -1
View File
@@ -105,7 +105,7 @@ include Makefile
DEPS = .*.d
define gendep
ifneq ($(1),$(subst /,:,$(1)))
DEPS += $(dir $(1)).$(basename $(notdir $(1))).d
DEPS += $(dir $(1)).$(notdir $(1)).d
endif
endef
$(foreach o,$(filter-out %/,$(obj-y)),$(eval $(call gendep,$(o))))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.