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.
all : $(NAME)
-$(NAME) : .upload
-
-.upload : .compile
- $(MAKE) upload
- touch .upload
+$(NAME) : upload
upload : .compile
arduino-cli upload --port $(PORT) --verify
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