Subversion Repositories pspware

Rev

Rev 348 | Rev 353 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
128 shine 1
TARGET = luaplayer
345 Oobles 2
VERSION = 0.18
128 shine 3
 
208 nevyn 4
RELEASEF = "LuaPlayer v$(VERSION)"
5
RELEASEFOLDER = build/$(RELEASEF)
185 nevyn 6
 
189 nevyn 7
PSP_EBOOT_TITLE = Lua Player v$(VERSION)
128 shine 8
PSP_EBOOT_ICON = title-icon.png
9
 
210 shine 10
include Makefile.psp.common
189 nevyn 11
 
345 Oobles 12
release: all # note - does not include binary; see release10 & 15
13
	make -C modules release
208 nevyn 14
	mkdir -p $(RELEASEFOLDER)/luaplayer
189 nevyn 15
	cp -R Applications $(RELEASEFOLDER)/luaplayer/
208 nevyn 16
	cp -R System $(RELEASEFOLDER)/luaplayer/
189 nevyn 17
	cp -R doc $(RELEASEFOLDER)/Documentation
18
	cp -R samples $(RELEASEFOLDER)/Samples
208 nevyn 19
	cp -R Readme* $(RELEASEFOLDER)/
189 nevyn 20
	cp -R CHANGELOG $(RELEASEFOLDER)/Changes.txt
21
	cp -R LICENSE $(RELEASEFOLDER)/License.txt
22
	-find $(RELEASEFOLDER) -name ".svn" -exec rm -rfv '{}' ";"
23
 
208 nevyn 24
release10: release
348 shine 25
	make -C bootstrap EBOOT.PBP
345 Oobles 26
	mkdir -p $(RELEASEFOLDER)/luaplayer
348 shine 27
	cp bootstrap/EBOOT.PBP $(RELEASEFOLDER)/luaplayer/EBOOT.PBP
345 Oobles 28
	cp luaplayer.prx $(RELEASEFOLDER)/luaplayer
350 Oobles 29
	cp modules/loadlib.prx $(RELEASEFOLDER)/luaplayer
345 Oobles 30
	cp modules/*.lrx $(RELEASEFOLDER)/luaplayer
208 nevyn 31
	-cd build && zip -r "LuaPlayer_v$(VERSION)_firmware10".zip $(RELEASEF)
32
 
33
release15: release
348 shine 34
	make -C bootstrap kxploit
345 Oobles 35
	mkdir -p $(RELEASEFOLDER)/luaplayer
36
	mkdir -p $(RELEASEFOLDER)/luaplayer%
37
	cp bootstrap/luaboot/EBOOT.PBP $(RELEASEFOLDER)/luaplayer/EBOOT.PBP
38
	cp bootstrap/luaboot%/EBOOT.PBP $(RELEASEFOLDER)/luaplayer%/EBOOT.PBP
39
	cp luaplayer.prx $(RELEASEFOLDER)/luaplayer
350 Oobles 40
	cp modules/loadlib.prx $(RELEASEFOLDER)/luaplayer
345 Oobles 41
	cp modules/*.lrx $(RELEASEFOLDER)/luaplayer
208 nevyn 42
	-cd build && zip -r "LuaPlayer_v$(VERSION)_firmware15".zip $(RELEASEF)
189 nevyn 43
 
208 nevyn 44
release-all: release10 release15
45
 
46
nightly10: release10
47
	mv build/"LuaPlayer_v$(VERSION)_firmware10".zip build/"LuaPlayer_`date +"%Y%m%d"`_firmware10".zip
48
	/usr/local/bin/svn info | grep "Last Changed" > build/nightly-info
49
	zip -m build/"LuaPlayer_`date +"%Y%m%d"`_firmware10".zip build/nightly-info
50
 
51
nightly15: release15 nightly
52
	mv build/"LuaPlayer_v$(VERSION)_firmware15".zip build/"LuaPlayer_`date +"%Y%m%d"`_firmware15".zip
53
	/usr/local/bin/svn info | grep "Last Changed" > build/nightly-info
54
	zip -m build/"LuaPlayer_`date +"%Y%m%d"`_firmware15".zip build/nightly-info
55
 
56
nightly-all: nightly10 nightly15
57
 
58
clean-builds:
189 nevyn 59
	-rm -rf luaplayer luaplayer%
208 nevyn 60
	-rm -rf build
189 nevyn 61
 
208 nevyn 62
clean-all: clean-builds clean
345 Oobles 63
	make -C bootstrap clean
64
	make -C modules clean
208 nevyn 65
 
345 Oobles 66
#INSTALL_PATH = /Volumes/Untitled/PSP/GAME
67
INSTALL_PATH = test
68
 
69
install: all
70
	make -C bootstrap kxploit
71
	make -C modules release
72
	mkdir -p $(INSTALL_PATH)/luaplayer
73
	mkdir -p $(INSTALL_PATH)/luaplayer%
74
	cp bootstrap/luaboot/EBOOT.PBP $(INSTALL_PATH)/luaplayer
75
	cp bootstrap/luaboot%/EBOOT.PBP $(INSTALL_PATH)/luaplayer%
76
	cp luaplayer.prx $(INSTALL_PATH)/luaplayer
350 Oobles 77
	cp modules/loadlib.prx $(INSTALL_PATH)/luaplayer
345 Oobles 78
	cp modules/*.lrx $(INSTALL_PATH)/luaplayer
79
	mkdir -p $(INSTALL_PATH)/luaplayer/System
80
	cp -R System/system.lua $(INSTALL_PATH)/luaplayer/System/
81