aboutsummaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/libsquish/libsquish/0001-makefile-Add-LIBDIR.patch
blob: c6eb7ac57637a07f19912bb0195c33c1d68f153c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 4fd08c0446ca02917014b63f9080c4205958a130 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 20 Mar 2022 01:15:32 -0700
Subject: [PATCH] makefile: Add LIBDIR

Avoid hardcoding /lib

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 1c01f89..2b1df5b 100644
--- a/Makefile
+++ b/Makefile
@@ -11,12 +11,12 @@ all : $(LIB) squish.pc
 
 install : $(LIB) squish.pc
 	install squish.h $(INSTALL_DIR)/include 
-	install libsquish.a $(INSTALL_DIR)/lib
-	install squish.pc $(INSTALL_DIR)/lib/pkgconfig
+	install libsquish.a $(INSTALL_DIR)/$(LIBDIR)
+	install squish.pc $(INSTALL_DIR)/$(LIBDIR)/pkgconfig
 
 uninstall:
 	$(RM) $(INSTALL_DIR)/include/squish.h
-	$(RM) $(INSTALL_DIR)/lib/libsquish.a
+	$(RM) $(INSTALL_DIR)/$(LIBDIR)/libsquish.a
 
 $(LIB) : $(OBJ)
 	$(AR) cr $@ $?
-- 
2.35.1