-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 981 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Variablen
PORT = /dev/ttyUSB0
BOARD = esp32dev
SPEED = 115200
PLATFORMIO = ~/.platformio/penv/bin/platformio
# Ziele
all: build
build:
$(PLATFORMIO) run --environment $(BOARD)
upload:
$(PLATFORMIO) run --environment $(BOARD) --target upload --upload-port $(PORT)
monitor:
$(PLATFORMIO) device monitor --port $(PORT) --baud $(SPEED)
clean:
$(PLATFORMIO) run --environment $(BOARD) --target clean
flash: upload monitor
setup:
python ./setup.py
help:
@echo "Available Makefile Commands:"
@echo " setup - Sets up the development environment"
@echo " all - Builds the project"
@echo " build - Builds the project"
@echo " upload - Uploads the project to the ESP32"
@echo " monitor - Opens a terminal to the ESP32"
@echo " flash - Uploads the project to the ESP32 and opens a terminal"
@echo " clean - Cleans the project"
@echo " help - Displays this help message"
# Standardziel
.PHONY: all build upload monitor clean setup help