mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 01:49:17 +01:00
add DESTDIR for packaging
This commit is contained in:
parent
a711f2bef2
commit
2f6465447f
3
Makefile
3
Makefile
@ -6,10 +6,11 @@ export TOPDIR := $(CURDIR)
|
|||||||
|
|
||||||
export LIBFAT_MAJOR := 1
|
export LIBFAT_MAJOR := 1
|
||||||
export LIBFAT_MINOR := 1
|
export LIBFAT_MINOR := 1
|
||||||
export LIBFAT_PATCH := 2
|
export LIBFAT_PATCH := 3
|
||||||
|
|
||||||
export VERSTRING := $(LIBFAT_MAJOR).$(LIBFAT_MINOR).$(LIBFAT_PATCH)
|
export VERSTRING := $(LIBFAT_MAJOR).$(LIBFAT_MINOR).$(LIBFAT_PATCH)
|
||||||
|
|
||||||
|
export DESTDIR := $(DESTDIR)
|
||||||
|
|
||||||
default: release
|
default: release
|
||||||
|
|
||||||
|
@ -126,8 +126,10 @@ dist-bin:
|
|||||||
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-gba-$(VERSTRING).tar.bz2 include lib
|
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-gba-$(VERSTRING).tar.bz2 include lib
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@cp lib/libfat.a $(DEVKITPRO)/libgba/lib
|
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libgba/lib
|
||||||
@cp $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DEVKITPRO)/libgba/include
|
@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
|
else
|
||||||
|
@ -106,9 +106,12 @@ dist-bin:
|
|||||||
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-ogc-$(VERSTRING).tar.bz2 include lib
|
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-ogc-$(VERSTRING).tar.bz2 include lib
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@cp lib/wii/libfat.a $(DEVKITPRO)/libogc/lib/wii
|
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libogc/lib/cube
|
||||||
@cp lib/cube/libfat.a $(DEVKITPRO)/libogc/lib/cube
|
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libogc/lib/wii
|
||||||
@cp $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DEVKITPRO)/libogc/include
|
@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
|
else
|
||||||
|
@ -106,8 +106,10 @@ dist-bin:
|
|||||||
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-nds-$(VERSTRING).tar.bz2 include lib
|
@tar --exclude=.svn --exclude=*CVS* -cvjf $(TOPDIR)/distribute/$(VERSTRING)/libfat-nds-$(VERSTRING).tar.bz2 include lib
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@cp -v lib/libfat.a $(DEVKITPRO)/libnds/lib
|
@mkdir -p $(DESTDIR)$(DEVKITPRO)/libnds/lib
|
||||||
@cp -v $(TOPDIR)/include/fat.h $(TOPDIR)/include/libfatversion.h $(DEVKITPRO)/libnds/include
|
@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
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user