aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Vance <natervance@gmail.com>2025-09-10 21:12:18 -0400
committerNathan Vance <natervance@gmail.com>2025-09-10 21:12:18 -0400
commitbe5e0541cb0f028c4e78bdcba37428c6c0fefef0 (patch)
treebe7a374bd8f3558f5393e3d0d5ba840c3d28e8f9
parentf909f30cc967bdf4a0f4cb16c47db273cda6ef2b (diff)
downloadlibbible-master.tar.gz
libbible-master.tar.bz2
libbible-master.zip
Use $(shell ...) rather than backticksHEADmaster
-rw-r--r--Makefile2
-rw-r--r--src/lib/Makefile4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 61b42b8..fd9dba7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ exec_prefix ?= $(prefix)
libdir ?= $(exec_prefix)/lib
bindir ?= $(exec_prefix)/bin
includedir ?= $(prefix)/include
-completions ?= `pkg-config --variable=completionsdir bash-completion`
+completions ?= $(shell pkg-config --variable=completionsdir bash-completion)
$(EXECUTABLE): $(OBJECTS) libbible
$(CXX) $(OBJECTS) -o $@ $(LDFLAGS) -Lsrc/lib -lbible
diff --git a/src/lib/Makefile b/src/lib/Makefile
index 80b7bb7..c50efd7 100644
--- a/src/lib/Makefile
+++ b/src/lib/Makefile
@@ -1,6 +1,6 @@
LIBS = sword minizip
-override CXXFLAGS += -MMD -Wall -std=c++20 -fPIC `pkg-config $(LIBS) --cflags`
-override LDFLAGS += -lstdc++fs `pkg-config $(LIBS) --libs`
+override CXXFLAGS += -MMD -Wall -std=c++20 -fPIC $(shell pkg-config $(LIBS) --cflags)
+override LDFLAGS += -lstdc++fs $(shell pkg-config $(LIBS) --libs)
SOURCES = $(wildcard *.cc)
OBJECTS = $(SOURCES:.cc=.o)
DEPS = $(OBJECTS:.o=.d)