]>
Commit | Line | Data |
---|---|---|
1 | AUTOMAKE_OPTIONS = foreign | |
2 | ACLOCAL_AMFLAGS = -I m4 | |
3 | ||
4 | SUBDIRS = librb | |
5 | ||
6 | if BUILD_LTDL | |
7 | SUBDIRS += libltdl | |
8 | endif | |
9 | ||
10 | SUBDIRS += ircd \ | |
11 | ssld \ | |
12 | authd \ | |
13 | bandb \ | |
14 | tools \ | |
15 | modules \ | |
16 | extensions \ | |
17 | help \ | |
18 | doc | |
19 | ||
20 | logdir = @prefix@/logs | |
21 | ||
22 | BUILT_SOURCES = include/serno.h | |
23 | ||
24 | include/serno.h: | |
25 | @if [ -d .git ]; then \ | |
26 | revh=`git log -1 --date=format:%Y%m%d --pretty=format:%cd-%h`; \ | |
27 | datecode=`git log -1 --pretty=format:%ct`; \ | |
28 | if [ -n "$$revh" ]; then \ | |
29 | echo '#define SERNO "'$$revh'"' >include/serno.h ; \ | |
30 | echo "#define DATECODE $${datecode}UL" >>include/serno.h; \ | |
31 | fi \ | |
32 | fi | |
33 | @if [ ! -f include/serno.h ]; then \ | |
34 | echo '#define SERNO "unknown"' >include/serno.h; \ | |
35 | echo '#define DATECODE 0UL' >>include/serno.h; \ | |
36 | fi | |
37 | ||
38 | install-data-hook: | |
39 | test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir} | |
40 | ||
41 | install-exec-hook: | |
42 | rm -f ${DESTDIR}${moduledir}/*.la | |
43 | rm -f ${DESTDIR}${moduledir}/autoload/*.la | |
44 | rm -f ${DESTDIR}${moduledir}/extensions/*.la | |
45 | rm -f ${DESTDIR}${moduledir}/*.dll.a | |
46 | rm -f ${DESTDIR}${moduledir}/autoload/*.dll.a | |
47 | rm -f ${DESTDIR}${moduledir}/extensions/*.dll.a |