blob: c6eb7ac57637a07f19912bb0195c33c1d68f153c [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001From 4fd08c0446ca02917014b63f9080c4205958a130 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 20 Mar 2022 01:15:32 -0700
4Subject: [PATCH] makefile: Add LIBDIR
5
6Avoid hardcoding /lib
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 Makefile | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
13
14diff --git a/Makefile b/Makefile
15index 1c01f89..2b1df5b 100644
16--- a/Makefile
17+++ b/Makefile
18@@ -11,12 +11,12 @@ all : $(LIB) squish.pc
19
20 install : $(LIB) squish.pc
21 install squish.h $(INSTALL_DIR)/include
22- install libsquish.a $(INSTALL_DIR)/lib
23- install squish.pc $(INSTALL_DIR)/lib/pkgconfig
24+ install libsquish.a $(INSTALL_DIR)/$(LIBDIR)
25+ install squish.pc $(INSTALL_DIR)/$(LIBDIR)/pkgconfig
26
27 uninstall:
28 $(RM) $(INSTALL_DIR)/include/squish.h
29- $(RM) $(INSTALL_DIR)/lib/libsquish.a
30+ $(RM) $(INSTALL_DIR)/$(LIBDIR)/libsquish.a
31
32 $(LIB) : $(OBJ)
33 $(AR) cr $@ $?
34--
352.35.1
36