68f1352159
- 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>
41 lines
839 B
Makefile
41 lines
839 B
Makefile
# SONiC make file
|
|
|
|
NOJESSIE ?= 0
|
|
NOSTRETCH ?= 0
|
|
|
|
%::
|
|
@echo "+++ --- Making $@ --- +++"
|
|
ifeq ($(NOJESSIE), 0)
|
|
EXTRA_DOCKER_TARGETS=$(notdir $@) make -f Makefile.work jessie
|
|
endif
|
|
ifeq ($(NOSTRETCH), 0)
|
|
EXTRA_DOCKER_TARGETS=$(notdir $@) BLDENV=stretch make -f Makefile.work stretch
|
|
endif
|
|
BLDENV=buster make -f Makefile.work $@
|
|
|
|
jessie:
|
|
@echo "+++ Making $@ +++"
|
|
ifeq ($(NOJESSIE), 0)
|
|
make -f Makefile.work jessie
|
|
endif
|
|
|
|
stretch:
|
|
@echo "+++ Making $@ +++"
|
|
ifeq ($(NOSTRETCH), 0)
|
|
make -f Makefile.work stretch
|
|
endif
|
|
|
|
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 $@
|
|
endif
|
|
ifeq ($(NOSTRETCH), 0)
|
|
BLDENV=stretch make -f Makefile.work $@
|
|
endif
|
|
BLDENV=buster make -f Makefile.work $@
|