From f9d21d80b618f0b0c309a45c6aaad8923b4919e2 Mon Sep 17 00:00:00 2001 From: Sven Almgren Date: Wed, 14 Mar 2012 12:09:04 +0100 Subject: [PATCH] Make sure lib-directory exists before copying files on install --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index dbc9ce2b08..7bc384f8b3 100644 --- a/Makefile +++ b/Makefile @@ -170,6 +170,7 @@ $(objdir)/%.o: $(srcdir)/%.cpp ifeq ($(SHARED),1) install: banner install_headers $(lib_target) @echo "Install shared library" + mkdir -p $(inst_path) cp -f ./$(lib_target) $(inst_path) cd $(inst_path) ; \ ln -sf $(lib_target) $(libname_shared_major_version) ; \ @@ -181,6 +182,7 @@ install: banner install_headers $(lib_target) else install: banner install_headers $(lib_target) @echo "Install static library" + mkdir -p $(inst_path) cp -f ./$(lib_target) $(inst_path) @echo "Install static library: Done." endif