make: Fixing issue with finding changed files

This commit is contained in:
Tom Gallacher 2016-11-01 12:39:54 +00:00
parent 5b51ad01a0
commit e0a8a2be26
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ $(SUBDIRS_TARGETS):
$(MAKE) --no-print-directory -C $(@D) $(@F:.%=%)
DIFF := $(lastword $(subst /, ,${CIRCLE_COMPARE_URL}))
CHANGES := $(filter $(dir $(shell git diff --name-only $(DIFF))), $(SUBDIRS))
CHANGED_FILES := $(subst /, , $(dir $(shell git diff --name-only $(DIFF))))
CHANGES := $(patsubst %, %/, $(sort $(filter $(subst /, ,$(SUBDIRS)), $(CHANGED_FILES))))
.PHONY: diff
diff:
echo $(CHANGES)