The Makefile uses arduino-cli.
--- /dev/null
+
+MAINCMD := arduino-cli compile --upload --verify
+
+FQBN := arduino:avr:uno
+PORT := /dev/ttyACM0
+
+MAINCMD += --port $(PORT)
+MAINCMD += --fqbn $(FQBN)
+
+ifneq ("$(wildcard .verbose)","")
+ MAINCMD += --verbose
+endif
+
+SRCS := Servomatic.ino \
+
+
+NAME := Servomatic
+
+all : $(NAME)
+
+$(NAME) : $(NAME).ino
+ $(MAINCMD) $<
+ touch $(NAME)
+
+verbose : .verbose
+
+noverbose :
+ if [ -f .verbose ]; then rm .verbose && $(MAKE) re; fi
+
+re : fclean
+ $(MAKE)
+
+clean :
+
+fclean : clean
+ $(RM) $(NAME)
+
+.% :
+ if [ ! -f $@ ]; then touch $@ && $(MAKE) re; fi