From ba4664fde5053ca91897e61e3caddce0a4be4bae Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Tue, 21 May 2024 13:02:26 +0200 Subject: [PATCH] Added: Makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..648b323 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +# Makefile for Arduino project using PlatformIO +# Adapted from: https://git.microlab.space/microlab/dod-rfid/src/branch/master/makefile + +PROJECT_DIR = $(CURDIR) +PLATFORMIO_BIN = /bin/pio + +all: build upload + +build: + $(PLATFORMIO_BIN) run -d $(PROJECT_DIR) + +upload: + $(PLATFORMIO_BIN) run -d $(PROJECT_DIR) -t upload + +clean: + $(PLATFORMIO_BIN) run -d $(PROJECT_DIR) -t clean + +monitor: + $(PLATFORMIO_BIN) device monitor + +.PHONY: all build upload clean monitor +