summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..986833f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+TARGET = gymnasiearbete
+
+PIO = platformio
+
+all: $(TARGET)
+
+.PHONY: $(TARGET) upload clean monitor
+
+$(TARGET):
+ $(PIO) run -v
+ $(PIO) run --target compiledb
+
+upload:
+ $(PIO) run --target upload
+
+clean:
+ $(PIO) run --target clean
+
+monitor:
+ $(PIO) run --target monitor