build: fix dependencies for files compiled from their parent directory
authorJan Beulich <jbeulich@suse.com>
Thu, 26 Nov 2015 14:50:07 +0000 (15:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 26 Nov 2015 14:50:07 +0000 (15:50 +0100)
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>
xen/Rules.mk

index e9d03b9900fcaf60613ec4bbed825c5a6eb10ce6..02db11032e1eba4a857363493973562989c1541f 100644 (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))))