Fix the clean target reporting "Is a directory" error (#16029)
### Why I did it Since directories are being removed, the `-r` flag is required. Fixes #15922 ##### Work item tracking - Microsoft ADO **(number only)**: 24752770
This commit is contained in:
parent
7bea886f1d
commit
dfe5ea6e52
2
slave.mk
2
slave.mk
@ -1519,7 +1519,7 @@ SONIC_CLEAN_TARGETS += $(addsuffix -clean,$(addprefix $(TARGET_PATH)/, \
|
||||
$(SONIC_SIMPLE_DOCKER_IMAGES) \
|
||||
$(SONIC_INSTALLERS)))
|
||||
$(SONIC_CLEAN_TARGETS) :: $(TARGET_PATH)/%-clean : .platform
|
||||
$(Q)rm -f $(TARGET_PATH)/$* target/versions/dockers/$(subst .gz,,$*)
|
||||
$(Q)rm -rf $(TARGET_PATH)/$* target/versions/dockers/$(subst .gz,,$*)
|
||||
|
||||
SONIC_CLEAN_STDEB_DEBS = $(addsuffix -clean,$(addprefix $(PYTHON_DEBS_PATH)/, \
|
||||
$(SONIC_PYTHON_STDEB_DEBS)))
|
||||
|
Loading…
Reference in New Issue
Block a user