From aedbee52c0e21358c33e775eab41c634905f63c3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 10 Dec 2019 18:49:53 +0900 Subject: [PATCH] Prefer $(CHDIR) for the case srcdir contains symlinks --- defs/gmake.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defs/gmake.mk b/defs/gmake.mk index fc4606c23c..8ff17d993f 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -292,7 +292,7 @@ $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: \ endif REVISION_IN_HEADER := $(shell sed -n 's/^\#define RUBY_FULL_REVISION "\(.*\)"/\1/p' $(srcdir)/revision.h 2>/dev/null) -REVISION_LATEST := $(shell cd $(srcdir) && git log -1 --format=%H 2>/dev/null) +REVISION_LATEST := $(shell $(CHDIR) $(srcdir) && git log -1 --format=%H 2>/dev/null) ifneq ($(REVISION_IN_HEADER),$(REVISION_LATEST)) # GNU make treat the target as unmodified when its dependents get # updated but it is not updated, while others may not.