diff --git a/coment/Makefile b/coment/Makefile index 23ee5ee..506a148 100755 --- a/coment/Makefile +++ b/coment/Makefile @@ -68,17 +68,17 @@ install: @# Check library is built and exit if not @test -s bin/$(REALNAME) || { echo "Error: Library not yet built. Try running "make shared" first."; exit 1; } - #@ Make directories for library install + @# Make directories for library install @mkdir -p $(INSTALL_DIR_LIB) @mkdir -p $(INSTALL_DIR_INC)/coment @# Copy includes to install directory cp -R include/coment/* $(INSTALL_DIR_INC)/coment/ - #@ Copy libraries to install directory + @# Copy libraries to install directory cp bin/$(REALNAME) $(INSTALL_DIR_LIB) + cp -d bin/$(LINKNAME) $(INSTALL_DIR_LIB) ldconfig -n $(INSTALL_DIR_LIB) - ln -sfn $(INSTALL_DIR_LIB)/$(REALNAME) $(INSTALL_DIR_LIB)/$(LINKNAME) uninstall: rm -rf $(INSTALL_DIR_LIB)/libcoment.*