From a98948c7322f514d55ffff0461dadba0920d3672 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 11 Apr 2020 14:13:43 +0200 Subject: [PATCH] Make LIBDIR configurable, for multiarch. --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index dd10907..0fb94ba 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ LN := ln RANLIB := ranlib INSTALL := install PREFIX := /usr/local +LIBDIR := $(PREFIX)/lib LIB := libbmusb.a SODEV := libbmusb.so SONAME := libbmusb.so.6 @@ -36,14 +37,14 @@ clean: install: all $(INSTALL) -m 755 -o root -g root -d \ - $(DESTDIR)$(PREFIX)/lib \ - $(DESTDIR)$(PREFIX)/lib/pkgconfig \ + $(DESTDIR)$(LIBDIR) \ + $(DESTDIR)$(LIBDIR)/pkgconfig \ $(DESTDIR)$(PREFIX)/include/bmusb \ $(DESTDIR)/lib/udev/rules.d - $(INSTALL) -m 755 -o root -g root $(LIB) $(SOLIB) $(DESTDIR)$(PREFIX)/lib - $(LN) -sf $(SOLIB) $(DESTDIR)$(PREFIX)/lib/$(SONAME) - $(LN) -sf $(SOLIB) $(DESTDIR)$(PREFIX)/lib/$(SODEV) + $(INSTALL) -m 755 -o root -g root $(LIB) $(SOLIB) $(DESTDIR)$(LIBDIR) + $(LN) -sf $(SOLIB) $(DESTDIR)$(LIBDIR)/$(SONAME) + $(LN) -sf $(SOLIB) $(DESTDIR)$(LIBDIR)/$(SODEV) $(INSTALL) -m 755 -o root -g root bmusb/bmusb.h bmusb/fake_capture.h $(DESTDIR)$(PREFIX)/include/bmusb - $(INSTALL) -m 644 -o root -g root bmusb.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig + $(INSTALL) -m 644 -o root -g root bmusb.pc $(DESTDIR)$(LIBDIR)/pkgconfig $(INSTALL) -m 644 -o root -g root 70-bmusb.rules $(DESTDIR)/lib/udev/rules.d -- 2.39.2