micropython-apploader/Makefile

27 lines
753 B
Makefile
Raw Normal View History

build: micropython
micropython: check-and-reinit-micropython-submodules
$(MAKE) --directory=micropython/mpy-cross
$(MAKE) --directory=micropython/ports/esp8266
check-and-reinit-submodules:
@echo "Checking submodules"
@if git submodule status | egrep -q '^[-]|^[+]' ; then \
echo "INFO: Need to reinitialize git submodules"; \
git submodule update --init; \
fi
check-and-reinit-micropython-submodules: check-and-reinit-submodules
@echo "Checking micropython submodules"
@if cd micropython; git submodule status | egrep -q '^[-]|^[+]' ; then \
echo "INFO: Need to reinitialize micropython git submodules"; \
git submodule update --init; \
fi
.PHONY: check-and-reinit-submodules check-and-reinit-micropython-submodules