Skip to content

Commit

Permalink
Merge pull request #9 from mgarciaisaia/makefile-nothing-to-do
Browse files Browse the repository at this point in the history
Avoid rebuilding the lib when not needed
  • Loading branch information
fedescarpa committed Nov 14, 2015
2 parents 2879625 + bd535cd commit c087878
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ UNAME=$(shell uname)
# Clean and compile .so
all: release/libcspecs.so

create-dirs:
release/cspecs:
mkdir -p release/cspecs/

release/libcspecs.so: create-dirs $(OBJS)
release/libcspecs.so: release/cspecs/ $(OBJS)
$(CC) -shared -o "release/libcspecs.so" $(OBJS)

release/cspecs/%.o: cspecs/%.c
Expand Down Expand Up @@ -44,4 +44,4 @@ uninstall:
rm -f /usr/lib/libcspecs.so
rm -rf /usr/include/cspecs

.PHONY: all create-dirs clean install uninstall
.PHONY: all clean install uninstall

0 comments on commit c087878

Please sign in to comment.