]> jfr.im git - solanum.git/blame - librb/Makefile.am
modules: Add AV2 descriptions to all m_u* modules
[solanum.git] / librb / Makefile.am
CommitLineData
db137867
AC
1AUTOMAKE_OPTIONS = foreign
2
3SUBDIRS = src
af240db7
AC
4
5pkgconfigdir = $(libdir)/pkgconfig
c83f2f5e 6pkgconfig_DATA = librb.pc
d9e4f6f0
EM
7
8BUILT_SOURCES = include/serno.h
9
10include/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