1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-25 18:05:00 +02:00

fix the version, use date for the inflash version

Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
This commit is contained in:
Xiangfu Liu 2009-06-28 17:42:34 +08:00
parent d7012c2e2d
commit ba682deebb

View File

@ -1,8 +1,12 @@
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse
BUILD_BRANCH := $(shell git branch | grep ^\* | cut -d' ' -f2)
BUILD_HEAD := $(shell git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16)
BUILD_VERSION := ${BUILD_BRANCH}_${BUILD_HEAD}
inflash_version.h:
echo -e '#ifndef INFLASH_VERSION' \
'\n#define INFLASH_VERSION "'`svnversion`'"' \
'\n#define INFLASH_VERSION "20090628-1"' \
'\n#endif' > inflash_version.h
BUILT_SOURCES = inflash_version.h