From e062f308c82fce1d4f0540063b8f99fc323d49d7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 24 Feb 2022 17:00:55 -0500 Subject: Creates soname symlink --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f1bf29d..4b102b5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ export version = 1.0.2 +export soname_version = $(word 1, $(subst ., , $(version))) override CXXFLAGS += -MMD -Wall -std=c++20 SOURCES = $(wildcard src/*.cc) OBJECTS = $(SOURCES:.cc=.o) @@ -26,7 +27,8 @@ test: libbible install: libbible $(EXECUTABLE) install -d $(DESTDIR)$(libdir) install -m 644 src/lib/libbible.so $(DESTDIR)$(libdir)/libbible.so.$(version) - ln -s libbible.so.$(version) $(DESTDIR)$(libdir)/libbible.so + ln -s libbible.so.$(soname_version) $(DESTDIR)$(libdir)/libbible.so + ln -s libbible.so.$(version) $(DESTDIR)$(libdir)/libbible.so.$(soname_version) install -m 644 src/lib/libbible.a $(DESTDIR)$(libdir) install -d $(DESTDIR)$(includedir) install -m 644 src/lib/libbible.h $(DESTDIR)$(includedir) -- cgit v1.2.3