From: Jan Beulich Date: Thu, 26 Nov 2015 14:50:07 +0000 (+0100) Subject: build: fix dependencies for files compiled from their parent directory X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2167 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=08f3fad0f30a7de35d60c2615c2ee56d3f7b77c8;p=xen.git 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 Acked-by: Ian Campbell --- diff --git a/xen/Rules.mk b/xen/Rules.mk index e9d03b9900..02db11032e 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -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))))