From b08a449ce7c7f71b095718573f43f3bce8e5bbc4 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Tue, 8 Feb 2022 19:18:10 -0600 Subject: [PATCH] Makefile: Support DESTDIR MacPorts has been using this patch since 2014. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 507d894..793e44f 100644 --- a/Makefile +++ b/Makefile @@ -35,10 +35,10 @@ $(PRELOAD): $(SOURCE) $(DEPEND) -install_name $(LIBDIR)/$@ install: all - mkdir -p $(LIBDIR) - cp -f $(STATIC) $(LIBDIR) - cp -f $(DYNAMIC) $(LIBDIR) - cp -f $(PRELOAD) $(LIBDIR) + mkdir -p $(DESTDIR)$(LIBDIR) + cp -f $(STATIC) $(DESTDIR)$(LIBDIR) + cp -f $(DYNAMIC) $(DESTDIR)$(LIBDIR) + cp -f $(PRELOAD) $(DESTDIR)$(LIBDIR) clean: rm -f $(OBJECT) $(STATIC) $(DYNAMIC) $(PRELOAD)