Remove Makefile rules for .upload
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 5 Nov 2024 09:11:23 +0000 (10:11 +0100)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 5 Nov 2024 09:11:23 +0000 (10:11 +0100)
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.

Makefile
servotest/Makefile

index b952ff968540850432d59ea140e398a897fc63b2..9adcd9eecc8348b5122e36817c2b770933b2f596 100644 (file)
--- 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
index 769edfae0578d6a7ee39a5a4fa145aa0850bd5e6..f0aa2afe8c88d0a5921b64b012f7842a3a64aa09 100644 (file)
@@ -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