Skip to content

Commit

Permalink
chore(makefile): move step to install lualib into seperate target
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion authored and chronolaw committed May 9, 2023
1 parent 5c15238 commit 2c0648c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ build: target/release/libatc_router.$(SHLIB_EXT) target/release/libatc_router.a
target/release/libatc_router.%: src/*.rs
cargo build --release

install: build
install-lualib:
$(INSTALL) -d $(DESTDIR)$(LUA_LIB_DIR)/resty/router/
$(INSTALL) -m 664 lib/resty/router/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty/router/

install: build install-lualib
$(INSTALL) -m 775 target/release/libatc_router.$(SHLIB_EXT) $(DESTDIR)$(LUA_LIB_DIR)/libatc_router.$(SHLIB_EXT)

clean:
Expand Down

0 comments on commit 2c0648c

Please sign in to comment.