Updated to reflect server changes
This commit is contained in:
parent
5b472f3554
commit
5ebfa6ac8b
8
makefile
8
makefile
@ -10,12 +10,12 @@ PORT=/dev/cu.usbserial-A602HRAZ
|
||||
# End of user config
|
||||
######################################################################
|
||||
HTTP_FILES := $(wildcard http/*)
|
||||
LUA_FILES := init.lua httpserver.lua
|
||||
LUA_FILES := init.lua httpserver.lua httpserver-static.lua httpserver-error.lua
|
||||
|
||||
# Print usage
|
||||
usage:
|
||||
@echo "make upload_http to upload http files only"
|
||||
@echo "make upload_lua to upload init.lua and httpserver.lua"
|
||||
@echo "make upload_server to upload server files and init.lua
|
||||
@echo "make upload to upload all"
|
||||
|
||||
# Upload HTTP files only
|
||||
@ -23,9 +23,9 @@ upload_http: $(HTTP_FILES)
|
||||
$(foreach f, $^, $(LUATOOL) -f $(f) -t $(f) -p $(PORT);)
|
||||
|
||||
# Upload httpserver lua files (init and server module)
|
||||
upload_lua: $(LUA_FILES)
|
||||
upload_server: $(LUA_FILES)
|
||||
$(foreach f, $^, $(LUATOOL) -f $(f) -t $(f) -p $(PORT);)
|
||||
|
||||
# Upload all
|
||||
upload: upload_http upload_lua
|
||||
upload: upload_server upload_http
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user