Skip to content

Commit

Permalink
Merge pull request #7 from mgarciaisaia/installing-on-osx
Browse files Browse the repository at this point in the history
Updated makefile so it installs on OS X
  • Loading branch information
fedescarpa committed Apr 18, 2015
2 parents 07d5f87 + 888ca63 commit 2879625
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ H_SRCS=$(shell find . -iname "*.h" | tr '\n' ' ')

OBJS=$(C_SRCS:./%.c=release/%.o)

UNAME=$(shell uname)

# Clean and compile .so
all: release/libcspecs.so

Expand All @@ -30,8 +32,13 @@ clean:
$(RM) release

install: all
ifeq ($(UNAME), Darwin)
cp release/libcspecs.so /usr/lib
ditto $(H_SRCS) /usr/include
else
cp -u release/libcspecs.so /usr/lib
cp --parents -u $(H_SRCS) /usr/include
endif

uninstall:
rm -f /usr/lib/libcspecs.so
Expand Down

0 comments on commit 2879625

Please sign in to comment.