Subversion Repositories pspware

Compare Revisions

Ignore whitespace Rev 207 → Rev 208

/trunk/LuaPlayer/Makefile.psp
2,8 → 2,8
OBJS = src/graphics.o src/sound.o src/luaplayer.o src/luacontrols.o src/luagraphics.o src/luasound.o src/luasystem.o src/utility.o src/main.o src/framebuffer.o
VERSION = 0.10
 
RELEASEFOLDER = "LuaPlayer v$(VERSION)"
NIGHTLYFOLDER = "LuaPlayer `date +"%Y%m%d"`"
RELEASEF = "LuaPlayer v$(VERSION)"
RELEASEFOLDER = build/$(RELEASEF)
 
INCDIR =
CFLAGS = -G0 -Wall -O2 -fno-strict-aliasing
22,36 → 22,48
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
 
release: all kxploit
mkdir -p $(RELEASEFOLDER)
cp -R luaplayer $(RELEASEFOLDER)/
cp -R luaplayer% $(RELEASEFOLDER)/
cp -R EBOOT.PBP $(RELEASEFOLDER)/
release: all kxploit # note - does not include binary; see release10 & 15
mkdir -p $(RELEASEFOLDER)/luaplayer
cp -R Applications $(RELEASEFOLDER)/luaplayer/
cp -R Library $(RELEASEFOLDER)/luaplayer/
cp -R System $(RELEASEFOLDER)/luaplayer/
cp -R doc $(RELEASEFOLDER)/Documentation
cp -R samples $(RELEASEFOLDER)/Samples
cp -R README-DIST $(RELEASEFOLDER)/Readme.txt
cp -R Readme* $(RELEASEFOLDER)/
cp -R CHANGELOG $(RELEASEFOLDER)/Changes.txt
cp -R KNOWN\ BUGS $(RELEASEFOLDER)/Known\ bugs.txt
cp -R LICENSE $(RELEASEFOLDER)/License.txt
-find $(RELEASEFOLDER) -name ".svn" -exec rm -rfv '{}' ";"
# -zip -r "LuaPlayer_v$(VERSION)".zip $(RELEASEFOLDER)
 
nightly: release
mv $(RELEASEFOLDER) $(NIGHTLYFOLDER)
/usr/local/bin/svn info | grep "Last Changed" > $(NIGHTLYFOLDER)/nightly-info
-zip -r "LuaPlayer_`date +"%Y%m%d"`" $(NIGHTLYFOLDER)
release10: release
cp -R EBOOT.PBP $(RELEASEFOLDER)/luaplayer
-cd build && zip -r "LuaPlayer_v$(VERSION)_firmware10".zip $(RELEASEF)
release15: release
cp -R luaplayer $(RELEASEFOLDER)/
cp -R luaplayer% $(RELEASEFOLDER)/
-cd build && zip -r "LuaPlayer_v$(VERSION)_firmware15".zip $(RELEASEF)
 
clean-kx: clean
release-all: release10 release15
 
nightly10: release10
mv build/"LuaPlayer_v$(VERSION)_firmware10".zip build/"LuaPlayer_`date +"%Y%m%d"`_firmware10".zip
/usr/local/bin/svn info | grep "Last Changed" > build/nightly-info
zip -m build/"LuaPlayer_`date +"%Y%m%d"`_firmware10".zip build/nightly-info
 
nightly15: release15 nightly
mv build/"LuaPlayer_v$(VERSION)_firmware15".zip build/"LuaPlayer_`date +"%Y%m%d"`_firmware15".zip
/usr/local/bin/svn info | grep "Last Changed" > build/nightly-info
zip -m build/"LuaPlayer_`date +"%Y%m%d"`_firmware15".zip build/nightly-info
 
nightly-all: nightly10 nightly15
 
clean-builds:
-rm -rf luaplayer luaplayer%
clean-release: clean-kx
-rm -rf $(RELEASEFOLDER)
-rm -rf $(NIGHTLYFOLDER)
-rm *.zip
-rm -rf build
clean-all: clean-builds clean
install: all kxploit
cp -R luaplayer /Volumes/Untitled/PSP/GAME/
cp -R luaplayer% /Volumes/Untitled/PSP/GAME/
cp -R Library /Volumes/Untitled/PSP/GAME/luaplayer/
cp -R System/system.lua /Volumes/Untitled/PSP/GAME/luaplayer/System/