mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +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:.%=%)
|
$(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)
|
||||||
|
Loading…
Reference in New Issue
Block a user