summaryrefslogtreecommitdiff
path: root/scripts/makefile.darwin
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makefile.darwin')
-rw-r--r--scripts/makefile.darwin10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makefile.darwin b/scripts/makefile.darwin
index e17e65287..88e7f0690 100644
--- a/scripts/makefile.darwin
+++ b/scripts/makefile.darwin
@@ -26,6 +26,7 @@ PNGMAJ = 14
# Shared library names:
LIBSO=$(LIBNAME).dylib
LIBSOMAJ=$(LIBNAME).$(PNGMAJ).dylib
+LIBSOREL=$(LIBNAME).$(PNGMAJ).$(RELEASE).dylib
OLDSO=libpng.dylib
# Utilities:
@@ -129,14 +130,13 @@ install-static: install-headers libpng.a
install-shared: install-headers $(LIBSOMAJ) libpng.pc
-@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
-@$(RM_F) $(DL)/$(LIBSO)
- -@$(RM_F) $(DL)/$(LIBSOMAJ)
+ -@$(RM_F) $(DL)/$(LIBSOREL)
-@$(RM_F) $(DL)/$(OLDSO)
- cp $(LIBSOMAJ) $(DL)
- chmod 755 $(DL)/$(LIBSOMAJ)
+ cp $(LIBSOMAJ) $(DL)/$(LIBSOREL)
+ chmod 755 $(DL)/$(LIBSOREL)
(cd $(DL); \
- $(LN_SF) $(LIBSOMAJ) $(LIBSO); \
+ $(LN_SF) $(LIBSOREL) $(LIBSO); \
$(LN_SF) $(LIBSO) $(OLDSO))
-
-@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi
-@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc
-@$(RM_F) $(DL)/pkgconfig/libpng.pc