diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/lib/Makefile | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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) |