aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-04-18 12:02:48 -0400
committerYour Name <you@example.com>2022-04-18 12:02:48 -0400
commitddc05ee8fa60ec240d09d1d71a08f9521a1bd8b2 (patch)
treec54d4ffa92cb171ba23a81b2d9d4c6b5e3b41dd4 /Makefile
parentf843d4e1af82ac7485e8e9428e7411d88d39450e (diff)
downloadlibbible-ddc05ee8fa60ec240d09d1d71a08f9521a1bd8b2.tar.gz
libbible-ddc05ee8fa60ec240d09d1d71a08f9521a1bd8b2.tar.bz2
libbible-ddc05ee8fa60ec240d09d1d71a08f9521a1bd8b2.zip
Speed gains when working with multiple modulesv1.0.4
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4b102b5..b89db77 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-export version = 1.0.2
+export version = 1.0.4
export soname_version = $(word 1, $(subst ., , $(version)))
override CXXFLAGS += -MMD -Wall -std=c++20
SOURCES = $(wildcard src/*.cc)
@@ -10,6 +10,7 @@ exec_prefix ?= $(prefix)
libdir ?= $(exec_prefix)/lib
bindir ?= $(exec_prefix)/bin
includedir ?= $(prefix)/include
+completions ?= `pkg-config --variable=completionsdir bash-completion`
$(EXECUTABLE): $(OBJECTS) libbible
$(CXX) $(OBJECTS) -o $@ $(LDFLAGS) -Lsrc/lib -lbible
@@ -27,15 +28,15 @@ 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.$(soname_version) $(DESTDIR)$(libdir)/libbible.so
- ln -s libbible.so.$(version) $(DESTDIR)$(libdir)/libbible.so.$(soname_version)
+ ln -sf libbible.so.$(soname_version) $(DESTDIR)$(libdir)/libbible.so
+ ln -sf 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)
install -d $(DESTDIR)$(bindir)
install -m 755 $(EXECUTABLE) $(DESTDIR)$(bindir)
- install -d $(DESTDIR)`pkg-config --variable=completionsdir bash-completion`
- install -m 644 bible.bash $(DESTDIR)`pkg-config --variable=completionsdir bash-completion`/$(EXECUTABLE)
+ install -d $(DESTDIR)$(completions)
+ install -m 644 bible.bash $(DESTDIR)$(completions)/$(EXECUTABLE)
.PHONY: clean
clean: