mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30:06 +02:00
make: Fixing issue with finding changed files
This commit is contained in:
parent
5b51ad01a0
commit
e0a8a2be26
3
Makefile
3
Makefile
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user