]> jfr.im git - solanum.git/blame - Makefile.am
send: implement partial support for outbound tags (enough for account-tag as a testcase)
[solanum.git] / Makefile.am
CommitLineData
c52df125
AC
1AUTOMAKE_OPTIONS = foreign
2ACLOCAL_AMFLAGS = -I m4
3
4SUBDIRS = libratbox
5
6if BUILD_LTDL
7SUBDIRS += libltdl
8endif
9
ff12cc94 10SUBDIRS += ircd \
c52df125 11 ssld \
0c328118 12 authd \
c52df125
AC
13 bandb \
14 tools \
15 modules \
16 extensions \
17 help \
18 doc
19
20logdir = @prefix@/logs
21
b5e4f396
AC
22BUILT_SOURCES = include/serno.h
23
24include/serno.h:
25 @if [ -d .git ] ; then \
26 revh=`git log -1 --date=short --pretty=format:%cd_%h 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
27 [ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
28 elif [ -d .hg ] ; then \
29 revh=`hg parents --template '{date|shortdate}_{node|short}' 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
30 [ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
31 fi
32 @[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h
33
c52df125
AC
34install-data-hook:
35 test -d ${logdir} || mkdir -p ${logdir}