libmpm

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

commit 3102d7f25a99b4f5741c055499903ad2c888e0a2
parent 6a520702fa162a8c6628967cf72025b8ab934886
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 25 Jan 2017 17:35:30 +0100

Fix(Makefile): Fix creation of objs dir

Diffstat:
M.travis.yml | 1+
MMakefile | 4++--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -29,5 +29,6 @@ addons: project: name: "Morphux/libmpm" notification_email: louis@ne02ptzero.me + build_command_prepend: "make init" build_command: "make check" branch_pattern: master diff --git a/Makefile b/Makefile @@ -55,12 +55,12 @@ all: $(NAME) $(NAME): $(SQLITE) $(OBJS) @echo "Creating library..." - @mkdir $(OBJ_DIR) + 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 - @rm -rf objs + @rm -rf $(OBJ_DIR) init: make -C lib/libmorphux