Skip to content

Commit 20cad3b

Browse files
authored
[Build] fix make clean (#12713)
Why I did it make clean is broken after #12000: bash: -c: line 1: syntax error near unexpected token `;' bash: -c: line 1: `make -f slave.mk PLATFORM= PLATFORM_ARCH=amd64 MULTIARCH_QEMU_ENVIRON=n ... MIRROR_URLS= MIRROR_SECURITY_URLS= Q=@ clean; ; ' make[1]: *** [Makefile.work:531: clean] Error 2 How I did it Remove a conditional for clean command. Signed-off-by: Konstantin Vasin <k.vasin@yadro.com>
1 parent bf90b49 commit 20cad3b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Makefile.work

-2
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,7 @@ SONIC_BUILD_INSTRUCTION := $(MAKE) \
539539
.PHONY: sonic-slave-build sonic-slave-bash init reset
540540

541541

542-
ifeq ($(filter clean,$(MAKECMDGOALS)),)
543542
COLLECT_BUILD_VERSION = { scripts/collect_build_version_files.sh \$$?; }
544-
endif
545543

546544
ifdef SOURCE_FOLDER
547545
DOCKER_RUN += -v $(SOURCE_FOLDER):/var/$(USER)/src

0 commit comments

Comments
 (0)