aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-02-21 15:35:17 -0500
committerYour Name <you@example.com>2022-02-21 15:35:17 -0500
commit2b6be2d144250dffb364d429c39a563e8430f14d (patch)
tree25833a4cd3ae4f7bc02da37034dfdaf339fa6ada
parent200fdab221b2b9bf4954bad9c778512a5134a787 (diff)
downloadlibbible-2b6be2d144250dffb364d429c39a563e8430f14d.tar.gz
libbible-2b6be2d144250dffb364d429c39a563e8430f14d.tar.bz2
libbible-2b6be2d144250dffb364d429c39a563e8430f14d.zip
Made prefix etc lowercase in Makefile
-rw-r--r--Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index b1ad36b..b7eba21 100644
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,11 @@ OBJECTS = $(SOURCES:.cc=.o)
DEPS = $(OBJECTS:.o=.d)
EXECUTABLE = bible
LIBRARY = libbible.so
-PREFIX ?= /usr
-EXEC_PREFIX ?= $(PREFIX)
-LIBDIR ?= $(EXEC_PREFIX)/lib
-BINDIR ?= $(EXEC_PREFIX)/bin
-INCLUDEDIR ?= $(PREFIX)/include
+prefix ?= /usr
+exec_prefix ?= $(prefix)
+libdir ?= $(exec_prefix)/lib
+bindir ?= $(exec_prefix)/bin
+includedir ?= $(prefix)/include
$(EXECUTABLE): $(OBJECTS)
$(CXX) $(OBJECTS) -o $@ $(LDFLAGS)
@@ -25,12 +25,12 @@ test: $(LIBRARY)
$(MAKE) -C src/test/ test
install: $(LIBRARY) $(EXECUTABLE)
- install -d $(DESTDIR)$(LIBDIR)
- install -m 644 $(LIBRARY) $(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)$(libdir)
+ install -m 644 $(LIBRARY) $(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)