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