add DESTDIR for packaging

This commit is contained in:
Dave Murphy 2018-05-14 13:19:01 +01:00
parent a711f2bef2
commit 2f6465447f
4 changed files with 16 additions and 8 deletions

View File

@ -6,10 +6,11 @@ export TOPDIR := $(CURDIR)
export LIBFAT_MAJOR := 1
export LIBFAT_MINOR := 1
export LIBFAT_PATCH := 2
export LIBFAT_PATCH := 3
export VERSTRING := $(LIBFAT_MAJOR).$(LIBFAT_MINOR).$(LIBFAT_PATCH)
export DESTDIR := $(DESTDIR)
default: release

View File

@ -126,8 +126,10 @@ dist-bin:
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-gba-$(VERSTRING).tar.bz2 include lib
install:
@cp lib/libfat.a $(DEVKITPRO)/libgba/lib
@cp $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DEVKITPRO)/libgba/include
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libgba/lib
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libgba/include
@cp lib/libfat.a $(DESTDIR)$(DEVKITPRO)/libgba/lib
@cp $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DESTDIR)$(DEVKITPRO)/libgba/include
#---------------------------------------------------------------------------------
else

View File

@ -106,9 +106,12 @@ dist-bin:
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-ogc-$(VERSTRING).tar.bz2 include lib
install:
@cp lib/wii/libfat.a $(DEVKITPRO)/libogc/lib/wii
@cp lib/cube/libfat.a $(DEVKITPRO)/libogc/lib/cube
@cp $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DEVKITPRO)/libogc/include
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libogc/lib/cube
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libogc/lib/wii
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libogc/include
@cp lib/wii/libfat.a $(DESTDIR)$(DEVKITPRO)/libogc/lib/wii
@cp lib/cube/libfat.a $(DESTDIR)$(DEVKITPRO)/libogc/lib/cube
@cp $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DESTDIR)$(DEVKITPRO)/libogc/include
#---------------------------------------------------------------------------------
else

View File

@ -106,8 +106,10 @@ dist-bin:
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-nds-$(VERSTRING).tar.bz2 include lib
install:
@cp -v lib/libfat.a $(DEVKITPRO)/libnds/lib
@cp -v $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DEVKITPRO)/libnds/include
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libnds/lib
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libnds/include
@cp -v lib/libfat.a $(DESTDIR)$(DEVKITPRO)/libnds/lib
@cp -v $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DESTDIR)$(DEVKITPRO)/libnds/include
#---------------------------------------------------------------------------------
else