From 20cad3b2f5b15a936c0a1d48df273049665c4cc5 Mon Sep 17 00:00:00 2001 From: Konstantin Vasin Date: Sun, 18 Dec 2022 01:39:41 +0300 Subject: [PATCH] [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 --- Makefile.work | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile.work b/Makefile.work index d751f18fce..6f57130b6a 100644 --- a/Makefile.work +++ b/Makefile.work @@ -539,9 +539,7 @@ SONIC_BUILD_INSTRUCTION := $(MAKE) \ .PHONY: sonic-slave-build sonic-slave-bash init reset -ifeq ($(filter clean,$(MAKECMDGOALS)),) COLLECT_BUILD_VERSION = { scripts/collect_build_version_files.sh \$$?; } -endif ifdef SOURCE_FOLDER DOCKER_RUN += -v $(SOURCE_FOLDER):/var/$(USER)/src