Skip to content

Commit

Permalink
use version number
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Jan 16, 2017
1 parent 61fadec commit 7a71a0e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ SOURCES := src src/BoyScout src/disc_io
INCLUDES := include build
DATA := data

DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d)

export LIBGBA_MAJOR := 0
export LIBGBA_MINOR := 5
export LIBGBA_PATCH := 0

VERSION := $(LIBGBA_MAJOR).$(LIBGBA_MINOR).$(LIBGBA_PATCH)

ARCH := -mthumb -mthumb-interwork

Expand Down Expand Up @@ -68,12 +73,12 @@ clean:
@rm -fr $(BUILD) *.tar.bz2

dist: $(BUILD)
@tar --exclude=*CVS* --exclude=.svn --exclude=*build* --exclude=*.bz2 -cvjf libgba-src-$(DATESTRING).tar.bz2 include src data Makefile libgba_license.txt
@tar --exclude=*CVS* --exclude=.svn -cvjf libgba-$(DATESTRING).tar.bz2 include lib libgba_license.txt
@tar --exclude=*CVS* --exclude=.svn --exclude=*build* --exclude=*.bz2 -cvjf libgba-src-$(VERSION).tar.bz2 include src data Makefile libgba_license.txt
@tar --exclude=*CVS* --exclude=.svn -cvjf libgba-$(VERSION).tar.bz2 include lib libgba_license.txt

install: dist
mkdir -p $(DEVKITPRO)/libgba
bzip2 -cd libgba-$(DATESTRING).tar.bz2 | tar -xvf - -C $(DEVKITPRO)/libgba
bzip2 -cd libgba-$(VERSION).tar.bz2 | tar -xvf - -C $(DEVKITPRO)/libgba


#---------------------------------------------------------------------------------
Expand Down

0 comments on commit 7a71a0e

Please sign in to comment.