forked from BlackIoT/Polverine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 969 Bytes
/
Makefile
File metadata and controls
41 lines (32 loc) · 969 Bytes
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
41
# Makefile for POLVERINE_MULTI PlatformIO project
# Default target: build, upload, and monitor
.PHONY: all build clean upload monitor help
# Default target - build, upload, and monitor in sequence
all: build upload monitor
# Build the project
build:
pio run
# Clean build artifacts
clean:
pio run --target clean
# Upload firmware to device
upload:
pio run --target upload
# Start serial monitor
monitor:
pio run --target monitor
# Build and upload (useful for quick deployment)
deploy: build upload
# Full clean rebuild
rebuild: clean build
# Show available targets
help:
@echo "Available targets:"
@echo " all - Build, upload, and monitor (default)"
@echo " build - Build the project"
@echo " clean - Clean build artifacts"
@echo " upload - Upload firmware to device"
@echo " monitor - Start serial monitor"
@echo " deploy - Build and upload"
@echo " rebuild - Clean and build"
@echo " help - Show this help message"