Skip to content

Commit

Permalink
bugfix(makefile): missing some source code when do install with luaro… (
Browse files Browse the repository at this point in the history
#640)

* bugfix(makefile): missing some source code when do install with luarocks.

* utils: add new utils/gen-install-folder.sh.
  • Loading branch information
membphis authored Oct 8, 2019
1 parent 6b875ce commit 6825f74
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
41 changes: 27 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,34 +113,47 @@ install:
$(INSTALL) conf/config.yaml /usr/local/apisix/conf/config.yaml
$(INSTALL) conf/cert/apisix.* /usr/local/apisix/conf/cert/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/core
$(INSTALL) -d $(INST_LUADIR)/apisix/lua
$(INSTALL) lua/*.lua $(INST_LUADIR)/apisix/lua/
$(INSTALL) lua/apisix/core/*.lua $(INST_LUADIR)/apisix/lua/apisix/core/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix
$(INSTALL) lua/apisix/*.lua $(INST_LUADIR)/apisix/lua/apisix/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/admin
$(INSTALL) lua/apisix/admin/*.lua $(INST_LUADIR)/apisix/lua/apisix/admin/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/core
$(INSTALL) lua/apisix/core/*.lua $(INST_LUADIR)/apisix/lua/apisix/core/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/http
$(INSTALL) lua/apisix/http/*.lua $(INST_LUADIR)/apisix/lua/apisix/http/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/http/router
$(INSTALL) lua/apisix/http/router/*.lua $(INST_LUADIR)/apisix/lua/apisix/http/router
$(INSTALL) lua/apisix/http/router/*.lua $(INST_LUADIR)/apisix/lua/apisix/http/router/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins/prometheus/
$(INSTALL) lua/apisix/plugins/prometheus/*.lua $(INST_LUADIR)/apisix/lua/apisix/plugins/prometheus/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins/zipkin/
$(INSTALL) lua/apisix/plugins/zipkin/*.lua $(INST_LUADIR)/apisix/lua/apisix/plugins/zipkin/
$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins
$(INSTALL) lua/apisix/plugins/*.lua $(INST_LUADIR)/apisix/lua/apisix/plugins/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins/grpc-transcode/
$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins/grpc-transcode
$(INSTALL) lua/apisix/plugins/grpc-transcode/*.lua $(INST_LUADIR)/apisix/lua/apisix/plugins/grpc-transcode/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins/limit-count/
$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins/limit-count
$(INSTALL) lua/apisix/plugins/limit-count/*.lua $(INST_LUADIR)/apisix/lua/apisix/plugins/limit-count/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins
$(INSTALL) lua/apisix/plugins/*.lua $(INST_LUADIR)/apisix/lua/apisix/plugins/
$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins/prometheus
$(INSTALL) lua/apisix/plugins/prometheus/*.lua $(INST_LUADIR)/apisix/lua/apisix/plugins/prometheus/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/admin
$(INSTALL) lua/apisix/admin/*.lua $(INST_LUADIR)/apisix/lua/apisix/admin/
$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/plugins/zipkin
$(INSTALL) lua/apisix/plugins/zipkin/*.lua $(INST_LUADIR)/apisix/lua/apisix/plugins/zipkin/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/stream
$(INSTALL) lua/apisix/stream/*.lua $(INST_LUADIR)/apisix/lua/apisix/stream/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/stream/plugins
$(INSTALL) lua/apisix/stream/plugins/*.lua $(INST_LUADIR)/apisix/lua/apisix/stream/plugins/

$(INSTALL) -d $(INST_LUADIR)/apisix/lua/apisix/stream/router
$(INSTALL) lua/apisix/stream/router/*.lua $(INST_LUADIR)/apisix/lua/apisix/stream/router/

$(INSTALL) COPYRIGHT $(INST_CONFDIR)/COPYRIGHT
$(INSTALL) README.md $(INST_CONFDIR)/README.md
Expand Down
1 change: 1 addition & 0 deletions utils/gen-install-folder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
find lua -type d | sort | awk '{print "$(INSTALL) -d $(INST_LUADIR)/apisix/" $0 "\n" "$(INSTALL) " $0 "/*.lua $(INST_LUADIR)/apisix/" $0 "/\n" }'

0 comments on commit 6825f74

Please sign in to comment.