add xapian version to version string

This commit is contained in:
dockes 2009-01-28 14:22:10 +00:00
parent db021bf673
commit 9e906602ce

View File

@ -19,9 +19,11 @@ all: mk/sysconf common/rclversion.h
mk/sysconf: mk/sysconf:
@echo "You need to run configure first" ; exit 1 @echo "You need to run configure first" ; exit 1
common/rclversion.h: VERSION versfile=common/rclversion.h
echo 'static const char *rclversion = "'`cat VERSION`'";' \ ${versfile} : VERSION
> common/rclversion.h echo '#include <xapian/version.h>' > ${versfile}
echo 'static const char *rclversion = "'`cat VERSION`'"' >> ${versfile}
echo '" + Xapian " XAPIAN_VERSION;' >> ${versfile}
static: mk/sysconf common/rclversion.h static: mk/sysconf common/rclversion.h
cd lib; ${MAKE} cd lib; ${MAKE}