Modify so all file types are uploaded, not just HTML files

This commit is contained in:
Marcos Kirsch 2015-02-22 16:20:36 -06:00
parent 9459bb2645
commit 9cea7cd370

View File

@ -3,14 +3,14 @@
# User configuration # User configuration
###################################################################### ######################################################################
# Path to the tool and serial port # Path to the tool and serial port
LUATOOL=./luatool/luatool/luatool.py LUATOOL=../luatool/luatool/luatool.py
PORT=/dev/ttyUSB0 PORT=/dev/cu.usbserial-A602HRAZ
###################################################################### ######################################################################
# End of user config # End of user config
###################################################################### ######################################################################
HTTP_FILES := $(wildcard http/*html) HTTP_FILES := $(wildcard http/*)
LUA_FILES := init.lua httpserver.lua LUA_FILES := init.lua httpserver.lua
# Print usage # Print usage
usage: usage:
@ -23,7 +23,7 @@ upload_http: $(HTTP_FILES)
$(foreach f, $^, $(LUATOOL) -f $(f) -t $(f) -p $(PORT);) $(foreach f, $^, $(LUATOOL) -f $(f) -t $(f) -p $(PORT);)
# Upload httpserver lua files (init and server module) # Upload httpserver lua files (init and server module)
upload_lua: $(LUA_FILES) upload_lua: $(LUA_FILES)
$(foreach f, $^, $(LUATOOL) -f $(f) -t $(f) -p $(PORT);) $(foreach f, $^, $(LUATOOL) -f $(f) -t $(f) -p $(PORT);)
# Upload all # Upload all