pandora: fix readme and pxml version
[picodrive.git] / platform / pandora / Makefile
CommitLineData
68af34fe 1# release packaging makefile
2
d9653efd 3VER := $(shell head -n 1 ../common/version.h | \
85174a6d 4 sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/g')
d9653efd 5BUILD := $(shell git describe HEAD | grep -- - | \
6 sed -e 's/.*\-\(.*\)\-.*/\1/')
7ifneq "$(BUILD)" ""
8VER := $(VER)_$(BUILD)
9endif
68af34fe 10
dab0c363 11include ../../config.mak
12
85174a6d 13PND_MAKE ?= pnd_make
68af34fe 14
15all: rel
16
74e770b1 17../../tools/textfilter: ../../tools/textfilter.c
03d5f510 18 make -C ../../tools/ textfilter
68af34fe 19
0bc89554 20#readme.txt: ../../tools/textfilter ../base_readme.txt ../../ChangeLog
21# ../../tools/textfilter ../base_readme.txt $@ PANDORA
68af34fe 22
d9653efd 23/tmp/PicoDrive.pxml: PicoDrive.pxml.template FORCE
24 ./make_pxml.sh $< $@
68af34fe 25
f4906a00 26rel: ../../picodrive PicoDrive.sh picorestore \
68af34fe 27 PicoDrive.png PicoDrive_p.png \
28 ../../pico/carthw.cfg skin \
85174a6d 29 ../../README.md /tmp/PicoDrive.pxml
68af34fe 30 rm -rf out
31 mkdir out
32 cp -r $^ out/
26ecb2b6 33 mv out/README.md out/README
68af34fe 34 $(PND_MAKE) -p PicoDrive_$(VER).pnd -d out -x out/PicoDrive.pxml -i out/PicoDrive.png -c
35
d9653efd 36FORCE:
37.PHONY: all rel FORCE