1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

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

View File

@ -25,7 +25,8 @@ $(SUBDIRS_TARGETS):
$(MAKE) --no-print-directory -C $(@D) $(@F:.%=%) $(MAKE) --no-print-directory -C $(@D) $(@F:.%=%)
DIFF := $(lastword $(subst /, ,${CIRCLE_COMPARE_URL})) 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 .PHONY: diff
diff: diff:
echo $(CHANGES) echo $(CHANGES)