diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 24 |
2 files changed, 25 insertions, 0 deletions
@@ -1,2 +1,3 @@ +wakeup.lua .venv/ +.upload-marker diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f0fd6d1 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +MARKER=.upload-marker +PORT=/dev/ttyUSB0 + + +upload: $(MARKER) + + +$(MARKER): run.lua +$(MARKER): +wakeup.lua +$(MARKER): wakeup.lua +$(MARKER): + nodemcu-uploader -p $(PORT) upload $? + @touch $@ + + +upload_init: + nodemcu-uploader -p $(PORT) upload init.lua + + +clean: + rm -f $(MARKER) + + +.PHONY: upload upload_init clean |