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