Skip to content

Commit

Permalink
In make install, copying relative link generated by "make shared" rat…
Browse files Browse the repository at this point in the history
…her than creating a new absolute link
  • Loading branch information
Alex Cunliffe committed Jan 20, 2014
1 parent 9ba5f11 commit 927d8de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coment/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down

0 comments on commit 927d8de

Please sign in to comment.