X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fpandora%2FMakefile;h=590716928eb902bde121d6e6ded3964353de564d;hb=d9653efdf7cd77d61ed81ed692b00115d472d4e2;hp=c7e7c00c9274e224d0068e488f78dc33d2880c18;hpb=8d9b4b32d4adc21d7e1c5da285ddab0623829d3f;p=picodrive.git diff --git a/platform/pandora/Makefile b/platform/pandora/Makefile index c7e7c00..5907169 100644 --- a/platform/pandora/Makefile +++ b/platform/pandora/Makefile @@ -1,7 +1,12 @@ # release packaging makefile -VER ?= $(shell head -n 1 ../common/version.h | \ +VER := $(shell head -n 1 ../common/version.h | \ sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g') +BUILD := $(shell git describe HEAD | grep -- - | \ + sed -e 's/.*\-\(.*\)\-.*/\1/') +ifneq "$(BUILD)" "" +VER := $(VER)_$(BUILD) +endif PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh @@ -13,8 +18,8 @@ all: rel /tmp/readme.txt: ../../tools/textfilter ../base_readme.txt ../../tools/textfilter ../base_readme.txt $@ PANDORA -/tmp/PicoDrive.pxml: PicoDrive.pxml.template - ./make_pxml.sh $^ $@ +/tmp/PicoDrive.pxml: PicoDrive.pxml.template FORCE + ./make_pxml.sh $< $@ rel: ../../PicoDrive PicoDrive.sh picorestore \ PicoDrive.png PicoDrive_p.png \ @@ -25,3 +30,5 @@ rel: ../../PicoDrive PicoDrive.sh picorestore \ cp -r $^ out/ $(PND_MAKE) -p PicoDrive_$(VER).pnd -d out -x out/PicoDrive.pxml -i out/PicoDrive.png -c +FORCE: +.PHONY: all rel FORCE