libfat/Makefile

53 lines
1.1 KiB
Makefile
Raw Normal View History

2006-07-14 04:42:37 +02:00
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
endif
export TOPDIR := $(CURDIR)
export DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d)
default: release
all: release dist
release:
2006-07-14 04:42:37 +02:00
make -C nds BUILD=release
make -C gba BUILD=release
2008-03-16 19:06:25 +01:00
make -C gamecube BUILD=release
make -C wii BUILD=release
2006-07-14 04:42:37 +02:00
debug:
2006-07-14 04:42:37 +02:00
make -C nds BUILD=debug
make -C gba BUILD=debug
clean:
make -C nds clean
make -C gba clean
2008-03-16 19:06:25 +01:00
make -C gamecube clean
make -C wii clean
2006-07-14 04:42:37 +02:00
dist-bin: release distribute/$(DATESTRING)
2006-07-14 04:42:37 +02:00
make -C nds dist-bin
make -C gba dist-bin
2008-03-16 19:06:25 +01:00
make -C gamecube dist-bin
2006-07-14 04:42:37 +02:00
dist-src: distribute/$(DATESTRING)
@tar --exclude=*CVS* -cvjf distribute/$(DATESTRING)/libfat-src-$(DATESTRING).tar.bz2 \
source include Makefile \
nds/Makefile nds/include \
2008-03-16 19:06:25 +01:00
gba/Makefile gba/include \
gamecube/Makefile gamecube/include
2006-07-14 04:42:37 +02:00
dist: dist-bin dist-src
distribute/$(DATESTRING): distribute
@[ -d $@ ] || mkdir -p $@
distribute:
@[ -d $@ ] || mkdir -p $@
2006-07-24 07:48:58 +02:00
install: dist
2006-07-14 04:42:37 +02:00
make -C nds install
make -C gba install
2008-03-16 19:06:25 +01:00
make -C gamecube install