libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit 91ce586c48df81055d3ead6be5ad7d23f18d38ce
parent 5a4723f2bc923b8616e6cf6b5ed31a71f0fa4b10
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu, 26 Jan 2017 09:47:41 +0100

Fix(Makefile): Better print

Diffstat:
MMakefile | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -45,7 +45,10 @@ SQLITE = lib/sqlite/sqlite3.o OBJS = $(SRCS:%.c=%.o) # Library Merge -OBJ_DIR = objs/ +OBJ_DIR = objs/ +L_MORPHUX = ../lib/libmorphux/libmorphux.a +L_CURL = ../lib/curl/lib/.libs/libcurl.a +L_JSON = ../lib/json-c/.libs/libjson-c.a all: $(NAME) @@ -54,12 +57,13 @@ all: $(NAME) @$(CC) $(CFLAGS) -c -o $@ $^ $(NAME): $(SQLITE) $(OBJS) - @echo "Creating library..." - if [ ! -d "$(OBJ_DIR)" ]; then mkdir $(OBJ_DIR); fi + @if [ ! -d "$(OBJ_DIR)" ]; then mkdir $(OBJ_DIR); fi @cp $(OBJS) $(OBJ_DIR) @cp $(SQLITE) $(OBJ_DIR) - cd $(OBJ_DIR) && ar -x ../lib/libmorphux/libmorphux.a && ar -x ../lib/curl/lib/.libs/libcurl.a && ar -x ../lib/json-c/.libs/libjson-c.a - $(LIB) $(ARFLAGS) $(NAME) objs/*.o + @echo "AR\t\t$(L_MORPHUX) $(L_CURL) $(L_JSON)" + @cd $(OBJ_DIR) && ar -x $(L_MORPHUX) && ar -x $(L_CURL) && ar -x $(L_JSON) + @echo "CCLD\t\t$(NAME)" + @$(LIB) $(ARFLAGS) $(NAME) objs/*.o @rm -rf $(OBJ_DIR) init: