Added initial Makefile (wip) and esp-open-sdk as a submodule
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user