1
0
Fork 0
mirror of https://github.com/Luzifer/tasmota-build.git synced 2024-11-09 18:00:07 +00:00
tasmota-build/Makefile

28 lines
613 B
Makefile
Raw Normal View History

2018-01-18 19:13:35 +00:00
TASMOTA_VERSION=v5.11.1
default: build_sonoff build_sonoff-minimal
ci: clean default
build_%: download update_user-config venv
cd tasmota && ../venv/bin/platformio run -e $*
mkdir -p build
cp tasmota/.pioenvs/$*/firmware.bin build/$*.bin
clean:
rm -rf tasmota build venv
download:
git clone https://github.com/arendst/Sonoff-Tasmota.git tasmota
cd tasmota && git reset --hard $(TASMOTA_VERSION)
update_user-config: venv
./venv/bin/python update.py
cd tasmota && git --no-pager diff -w sonoff/user_config.h
venv:
virtualenv -p python2 venv
./venv/bin/pip install -r requirements.txt
.PHONY: venv