datasdir := $(HOME)/.make/
pio := $(HOME)/.platformio/penv/bin/pio
ttydown := /dev/ttyUSB0

all : $(datasdir) 
	$(pio) run

$(datasdir) :
	sudo echo
	curl -#fL https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -o get-platformio.py
	sudo apt install -y python3-venv
	python3 get-platformio.py
	mkdir $(datasdir)

clean :
	$(pio) run --target clean

