From: Lukáš Jiřiště Date: Tue, 5 Nov 2024 09:11:23 +0000 (+0100) Subject: Remove Makefile rules for .upload X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=770efd498eebae83d80b503b10fe5b18d7444339;p=Servomatic.git Remove Makefile rules for .upload The .upload file is not doing much as it needs to be done every time the compilation is done. And with the addition of another project, it does not reflect, whether the arduino actually has the program uploaded. --- diff --git a/Makefile b/Makefile index b952ff9..9adcd9e 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,7 @@ NAME := Servomatic all : $(NAME) -$(NAME) : .upload - -.upload : .compile - $(MAKE) upload - touch .upload +$(NAME) : upload upload : .compile arduino-cli upload --port $(PORT) --verify diff --git a/servotest/Makefile b/servotest/Makefile index 769edfa..f0aa2af 100644 --- a/servotest/Makefile +++ b/servotest/Makefile @@ -19,13 +19,9 @@ NAME := servotest all : $(NAME) -$(NAME) : .upload +$(NAME) : upload arduino-cli monitor --port $(PORT) -.upload : .compile - $(MAKE) upload - touch .upload - upload : .compile arduino-cli upload --port $(PORT) --verify