From 188b980b2597d39052004cb56277b1684df0007d Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 21 Jan 2024 22:59:49 +0100 Subject: Added makefile to handle subsequent transfers faster --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.1