[makefile] re-organize make file so init only execute once (#6160)

- Why I did it
make init executed 3 times, which is unnecessary.

- How I did it
reorganize the makefile so that init only executed once.

- How to verify it
make reset
make init

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
Ying Xie 2020-12-09 14:13:33 -08:00 committed by GitHub
parent 0ffadf357e
commit 68f1352159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,11 @@ ifeq ($(NOSTRETCH), 0)
make -f Makefile.work stretch
endif
clean reset init configure showtag sonic-slave-build sonic-slave-bash :
init:
@echo "+++ Making $@ +++"
make -f Makefile.work $@
clean configure reset showtag sonic-slave-build sonic-slave-bash :
@echo "+++ Making $@ +++"
ifeq ($(NOJESSIE), 0)
make -f Makefile.work $@