Skip to content

Commit 00f8a31

Browse files
author
Kareem Zidane
authored
Merge pull request #140 from cs50/develop
v8.1.2
2 parents db4cf45 + 33100fb commit 00f8a31

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION := 8.1.1
1+
VERSION := 8.1.2
22
MAJOR_VERSION := $(shell echo $(VERSION) | head -c 1)
33

44
# installation directory (/usr/local by default)
@@ -18,7 +18,7 @@ ifeq ($(OS),Linux)
1818
LIB_BASE := libcs50.so
1919
LIB_MAJOR := libcs50.so.$(MAJOR_VERSION)
2020
LIB_VERSION := libcs50.so.$(VERSION)
21-
LINKER_FLAGS := -Wl,-soname,$(LIB_VERSION)
21+
LINKER_FLAGS := -Wl,-soname,$(LIB_MAJOR)
2222
# Mac
2323
else ifeq ($(OS),Darwin)
2424
LIB_BASE := libcs50.dylib
@@ -34,12 +34,11 @@ all: $(LIBS) $(MANS)
3434

3535
$(LIBS): $(SRC) $(INCLUDE) Makefile
3636
$(CC) $(CFLAGS) -fPIC -shared $(LINKER_FLAGS) -o $(LIB_VERSION) $(SRC)
37-
ln -s $(LIB_VERSION) $(LIB_MAJOR)
38-
ln -s $(LIB_MAJOR) $(LIB_BASE)
37+
ln -sf $(LIB_MAJOR) $(LIB_BASE)
3938
mkdir -p $(addprefix build/, include lib src)
4039
install -m 644 $(SRC) build/src
4140
install -m 644 $(INCLUDE) build/include
42-
mv $(LIB_VERSION) $(LIB_MAJOR) $(LIB_BASE) build/lib
41+
mv $(LIB_VERSION) $(LIB_BASE) build/lib
4342

4443
.PHONY: install
4544
install: all

0 commit comments

Comments
 (0)