Fix the install rule in libctru’s the Makefile.

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.
This commit is contained in:
Emmanuel Gil Peyrot 2015-08-22 13:03:13 +01:00 committed by Emmanuel Gil Peyrot
parent 35a36b1885
commit c77ab1f75b

View File

@ -111,9 +111,9 @@ dist-src:
dist: dist-src dist-bin dist: dist-src dist-bin
install: dist-bin install:
mkdir -p $(DEVKITPRO)/libctru @mkdir -p $(DESTDIR)$(DEVKITPRO)/libctru
bzip2 -cd libctru-$(VERSION).tar.bz2 | tar -x -C $(DEVKITPRO)/libctru @cp -r include lib default_icon.png $(DESTDIR)$(DEVKITPRO)/libctru
dox: dox:
@doxygen Doxyfile @doxygen Doxyfile