mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
Add automatically lib dir make
This commit is contained in:
@@ -17,13 +17,9 @@ all: ../c/ip2region.c ../c/ip2region.h lua_ip2region.c
|
||||
$(CC) $(FFLAGS) $(LIBS) ../c/ip2region.c lua_ip2region.c -fPIC -shared -o $(SO_FILE)
|
||||
|
||||
install:
|
||||
@if [ -d $(LIB_DIR) ];\
|
||||
then\
|
||||
sudo cp $(SO_FILE) $(LIB_DIR);\
|
||||
echo "install Ip2region to $(LIB_DIR) successfully.";\
|
||||
else\
|
||||
echo "Sorry, $(LIB_DIR) seems not not exits.";\
|
||||
fi
|
||||
sudo mkdir -p $(LIB_DIR); \
|
||||
sudo cp $(SO_FILE) $(LIB_DIR);\
|
||||
echo "install Ip2region to $(LIB_DIR) successfully.";\
|
||||
|
||||
clean:
|
||||
find . -name \*.so | xargs rm -f
|
||||
|
||||
Reference in New Issue
Block a user