]> jfr.im git - solanum.git/blob - librb/Makefile.am
Add AV2 descriptions to m_[l-m]*
[solanum.git] / librb / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 SUBDIRS = src
4
5 pkgconfigdir = $(libdir)/pkgconfig
6 pkgconfig_DATA = librb.pc
7
8 BUILT_SOURCES = include/serno.h
9
10 include/serno.h:
11 @if [ -d .git ] ; then \
12 revh=`git log -1 --date=short --pretty=format:%cd_%h 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
13 [ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
14 elif [ -d .hg ] ; then \
15 revh=`hg parents --template '{date|shortdate}_{node|short}' 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
16 [ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
17 fi
18 @[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h