summaryrefslogtreecommitdiff
path: root/blink/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'blink/Makefile')
-rw-r--r--blink/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/blink/Makefile b/blink/Makefile
new file mode 100644
index 0000000..ebedf8a
--- /dev/null
+++ b/blink/Makefile
@@ -0,0 +1,17 @@
+IDF_PATH := $(HOME)/esp/esp-idf
+PROJECT := blink
+
+all:
+ . $(IDF_PATH)/export.sh && idf.py build
+
+flash:
+ . $(IDF_PATH)/export.sh && idf.py -p /dev/ttyUSB0 flash
+
+monitor:
+ . $(IDF_PATH)/export.sh && idf.py -p /dev/ttyUSB0 monitor
+
+clean:
+ . $(IDF_PATH)/export.sh && idf.py clean
+
+fullclean:
+ . $(IDF_PATH)/export.sh && idf.py fullclean