Add monitor rules to Makefile
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Mon, 18 Nov 2024 08:37:23 +0000 (09:37 +0100)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Mon, 18 Nov 2024 08:37:23 +0000 (09:37 +0100)
Makefile

index f7bc4e7089ba95af3fd784411fcc495439fba8b0..4d945533e763b2f87ae00b9cbdd8f44dc4c6aa7a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,12 @@ $(NAME) : upload
 upload : .compile
        arduino-cli upload --port $(PORT) --verify
 
+monitor :
+       arduino-cli monitor --port $(PORT)
+
+monitor_re : upload
+       $(MAKE) monitor
+
 .compile : $(SRCS)
        $(MAKE) compile
        touch .compile