aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-x[-rw-r--r--]Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e69de29..18c0068 100644..100755
--- a/Makefile
+++ b/Makefile
@@ -0,0 +1,8 @@
+mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
+current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
+all:
+ arduino --board adafruit:avr:feather32u4 --pref build.path=$(pwd)/build --verify $(pwd)/main.ino
+clean:
+ rm -rf build
+upload:
+ arduino --board adafruit:avr:feather32u4 --port /dev/ttyACM0 --upload $(pwd)/main.ino