]> jfr.im git - irc/freenode/solanum.git/blame - Makefile.am
Forget the old drain reason when rehashing
[irc/freenode/solanum.git] / Makefile.am
CommitLineData
c52df125
WP
1AUTOMAKE_OPTIONS = foreign
2ACLOCAL_AMFLAGS = -I m4
3
c83f2f5e 4SUBDIRS = librb
c52df125
WP
5
6if BUILD_LTDL
7SUBDIRS += libltdl
8endif
9
ff12cc94 10SUBDIRS += ircd \
c52df125 11 ssld \
caebeeca 12 wsockd \
0c328118 13 authd \
c52df125 14 bandb \
8fe5ef5a 15 tests \
c52df125
WP
16 tools \
17 modules \
18 extensions \
19 help \
20 doc
21
22logdir = @prefix@/logs
23
b5e4f396
WP
24BUILT_SOURCES = include/serno.h
25
26include/serno.h:
749d697c
EM
27 @if [ -d .git ]; then \
28 revh=`git log -1 --date=format:%Y%m%d --pretty=format:%cd-%h`; \
d0a28c6a 29 datecode=`git log -1 --pretty=format:%ct`; \
749d697c
EM
30 if [ -n "$$revh" ]; then \
31 echo '#define SERNO "'$$revh'"' >include/serno.h ; \
32 echo "#define DATECODE $${datecode}UL" >>include/serno.h; \
33 fi \
4ea068e8
EM
34 fi
35 @if [ ! -f include/serno.h ]; then \
749d697c
EM
36 echo '#define SERNO "unknown"' >include/serno.h; \
37 echo '#define DATECODE 0UL' >>include/serno.h; \
b5e4f396 38 fi
b5e4f396 39
c52df125 40install-data-hook:
62a09666 41 test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir}
9abdcf1c
EM
42
43install-exec-hook:
44 rm -f ${DESTDIR}${moduledir}/*.la
45 rm -f ${DESTDIR}${moduledir}/autoload/*.la
46 rm -f ${DESTDIR}${moduledir}/extensions/*.la
b870e83d
WP
47 rm -f ${DESTDIR}${moduledir}/*.dll.a
48 rm -f ${DESTDIR}${moduledir}/autoload/*.dll.a
49 rm -f ${DESTDIR}${moduledir}/extensions/*.dll.a
42c5dd7e 50
b376d0fd
EM
51distclean-local:
52 rm -f librb/include/librb-config.h
53
42c5dd7e
EM
54clean-local:
55 rm -f include/serno.h
b376d0fd
EM
56 rm -f ircd/ircd_lexer.c
57 rm -f ircd/ircd_parser.c
58 rm -f ircd/ircd_parser.h
59 rm -f ircd/version.c
60 rm -f ircd/version.c.last