2008-04-01 16:52:26 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
|
|
|
SUBDIRS = src
|
2008-06-11 03:02:10 +00:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2016-03-06 08:29:53 +00:00
|
|
|
pkgconfig_DATA = librb.pc
|
2016-03-07 06:23:30 +00:00
|
|
|
|
|
|
|
BUILT_SOURCES = include/serno.h
|
|
|
|
|
|
|
|
include/serno.h:
|
|
|
|
@if [ -d .git ] ; then \
|
2016-03-07 11:15:35 +00:00
|
|
|
revh=`git log -1 --date=format:%Y%m%d --pretty=format:%cd-%h`;\
|
2016-03-07 06:23:30 +00:00
|
|
|
[ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
|
|
|
|
elif [ -d .hg ] ; then \
|
|
|
|
revh=`hg parents --template '{date|shortdate}_{node|short}' 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
|
|
|
|
[ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
|
|
|
|
fi
|
|
|
|
@[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h
|