aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-04-05 12:30:42 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2026-04-05 12:30:42 +0200
commit740b9c1ed5f658d9d64b021be983bb9b161f6770 (patch)
tree252fa9adeca651baea6e508bf67b53e8824a9f33
parent5b63adcc9e80a04cf8909a67857d284eff87b398 (diff)
downloaddynstr-740b9c1ed5f658d9d64b021be983bb9b161f6770.tar.gz
Makefile: Fix installation location for dynstr.pc
Original patch by Aryam Karamtoth <spaciouscoder78@disroot.org>.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6a34874..aebbb09 100644
--- a/Makefile
+++ b/Makefile
@@ -37,13 +37,13 @@ DEPS = \
all: $(PROJECT_A) $(PROJECT_SO)
-install: all $(pkgcfgdir)/dynstr.pc
+install: all $(DESTDIR)$(pkgcfgdir)/dynstr.pc
mkdir -p $(DESTDIR)$(includedir)
cp include/dynstr.h $(DESTDIR)$(includedir)
chmod 0644 $(DESTDIR)$(includedir)/dynstr.h
mkdir -p $(DESTDIR)$(libdir)
cp $(PROJECT_A) $(PROJECT_SO) $(DESTDIR)$(libdir)
- chmod 0755 $(libdir)/$(PROJECT_A) $(DESTDIR)$(libdir)/$(PROJECT_SO)
+ chmod 0755 $(DESTDIR)$(libdir)/$(PROJECT_A) $(DESTDIR)$(libdir)/$(PROJECT_SO)
ln -fs $(DESTDIR)$(libdir)/$(PROJECT_SO) $(DESTDIR)$(libdir)/$(PROJECT_SO_FQ)
ln -fs $(DESTDIR)$(libdir)/$(PROJECT_SO) $(DESTDIR)$(libdir)/$(PROJECT_SO_NV)
@@ -59,7 +59,7 @@ $(PROJECT_A): $(DEPS)
$(PROJECT_SO): $(DEPS)
$(CC) $(PROJ_LDFLAGS) $(DEPS) -o $@
-$(pkgcfgdir)/dynstr.pc: dynstr.pc
+$(DESTDIR)$(pkgcfgdir)/dynstr.pc: dynstr.pc
mkdir -p $(DESTDIR)$(pkgcfgdir)
sed -e 's,/usr/local,$(DESTDIR)$(prefix),' $< > $@
chmod 0644 $@