1
0
mirror of https://github.com/Luzifer/tasmota-build.git synced 2024-09-19 18:32:58 +00:00
tasmota-build/Makefile

25 lines
475 B
Makefile
Raw Normal View History

TASMOTA_VERSION=v6.2.1
2018-01-18 19:13:35 +00:00
default: build_sonoff build_sonoff-minimal
chown:
chown -R $(UID) build
ci: full-clean default
2018-01-18 19:13:35 +00:00
build_%: download
$(MAKE) update_user-config_$*
2018-01-18 19:13:35 +00:00
cd tasmota && ../venv/bin/platformio run -e $*
mkdir -p build
cp tasmota/.pioenvs/$*/firmware.bin build/$*.bin
clean:
rm -rf tasmota venv
2018-01-18 19:13:35 +00:00
download:
git clone https://github.com/arendst/Sonoff-Tasmota.git tasmota
cd tasmota && git reset --hard $(TASMOTA_VERSION)
full-clean: clean
rm -rf build