[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>
This commit is contained in:
Konstantin Vasin 2022-12-18 01:39:41 +03:00 committed by GitHub
parent bf90b498a4
commit 20cad3b2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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