summaryrefslogtreecommitdiff
path: root/Makefile
blob: f0fd6d135350afc8ec0cfb7cf3a5bf7932fcb3f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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