From fe2e4a5f7f14b0292be20e2c480b719584b62989 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Thu, 16 Dec 2021 10:10:02 +0100 Subject: [PATCH] makefile: add DESTDIR support --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cf20e0f..d3435e4 100644 --- a/Makefile +++ b/Makefile @@ -18,8 +18,8 @@ $(OutPath)/$(TargetFile).a: $(ObjectFiles) $(archive) install: - @cp $(OutPath)/$(TargetFile).a $(ORBISDEV)/usr/lib - @cp include/orbisGl2.h $(ORBISDEV)/usr/include/orbis - @cp include/orbisGl2raymath.h $(ORBISDEV)/usr/include/orbis + @cp $(OutPath)/$(TargetFile).a $(DESTDIR)$(ORBISDEV)/usr/lib + @cp include/orbisGl2.h $(DESTDIR)$(ORBISDEV)/usr/include/orbis + @cp include/orbisGl2raymath.h $(DESTDIR)$(ORBISDEV)/usr/include/orbis @echo "$(TargetFile) Installed!"