Skip to content

Commit

Permalink
fix(build): use seperate target to install atc-router lualib
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion authored and chronolaw committed Jul 6, 2023
1 parent 19df3eb commit aaa4eb6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ lualib_deps = [
install_lualib_deps_cmd = "\n".join([
"""
DEP=$(pwd)/external/%s
# TODO: fix atc_router makefile so that we can choose to only install lualib
sed -i -e '/libatc_router.so/d' ${DEP}/Makefile
INSTALL=/usr/bin/install make --silent -C ${DEP} LUA_LIB_DIR=${BUILD_DESTDIR}/openresty/lualib install
if [[ ${DEP} == "atc_router" ]]; then
INSTALL=/usr/bin/install make --silent -C ${DEP} LUA_LIB_DIR=${BUILD_DESTDIR}/openresty/lualib install-lualib
else
INSTALL=/usr/bin/install make --silent -C ${DEP} LUA_LIB_DIR=${BUILD_DESTDIR}/openresty/lualib install
fi
""" % dep.lstrip("@").split("/")[0]
for dep in lualib_deps
])
Expand Down

0 comments on commit aaa4eb6

Please sign in to comment.