68af34fe |
1 | # release packaging makefile |
2 | |
d9653efd |
3 | VER := $(shell head -n 1 ../common/version.h | \ |
85174a6d |
4 | sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/g') |
d9653efd |
5 | BUILD := $(shell git describe HEAD | grep -- - | \ |
6 | sed -e 's/.*\-\(.*\)\-.*/\1/') |
7 | ifneq "$(BUILD)" "" |
8 | VER := $(VER)_$(BUILD) |
9 | endif |
68af34fe |
10 | |
dab0c363 |
11 | include ../../config.mak |
12 | |
85174a6d |
13 | PND_MAKE ?= pnd_make |
68af34fe |
14 | |
15 | all: 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 | |
dab0c363 |
26 | PicoDrive: ../../picodrive |
27 | $(STRIP) $^ -o $@ |
28 | |
29 | rel: PicoDrive PicoDrive.sh picorestore \ |
68af34fe |
30 | PicoDrive.png PicoDrive_p.png \ |
31 | ../../pico/carthw.cfg skin \ |
85174a6d |
32 | ../../README.md /tmp/PicoDrive.pxml |
68af34fe |
33 | rm -rf out |
34 | mkdir out |
35 | cp -r $^ out/ |
36 | $(PND_MAKE) -p PicoDrive_$(VER).pnd -d out -x out/PicoDrive.pxml -i out/PicoDrive.png -c |
37 | |
d9653efd |
38 | FORCE: |
39 | .PHONY: all rel FORCE |