From c77ab1f75b927233dceed08e00fdd06e77b92faf Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 22 Aug 2015 13:03:13 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20the=20install=20rule=20in=20libctru?= =?UTF-8?q?=E2=80=99s=20the=20Makefile.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current way was depending on tar and bzip2 to first create a binary package then extract it in the directory pointed by DEVKITPRO. This commit makes the install rule only copy the relevant files, and handle correctly the standard DESTDIR variable, so packagers can use it to make their own packages. --- libctru/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libctru/Makefile b/libctru/Makefile index 67b189e..227ad98 100644 --- a/libctru/Makefile +++ b/libctru/Makefile @@ -111,9 +111,9 @@ dist-src: dist: dist-src dist-bin -install: dist-bin - mkdir -p $(DEVKITPRO)/libctru - bzip2 -cd libctru-$(VERSION).tar.bz2 | tar -x -C $(DEVKITPRO)/libctru +install: + @mkdir -p $(DESTDIR)$(DEVKITPRO)/libctru + @cp -r include lib default_icon.png $(DESTDIR)$(DEVKITPRO)/libctru dox: @doxygen Doxyfile