]> jfr.im git - irc/freenode/solanum.git/blob - Makefile.am
Clean up duplication in ChannelModeFunc prototypes (#52)
[irc/freenode/solanum.git] / Makefile.am
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 wsockd \
13 authd \
14 bandb \
15 tests \
16 tools \
17 modules \
18 extensions \
19 help \
20 doc
21
22 logdir = @prefix@/logs
23
24 BUILT_SOURCES = include/serno.h
25
26 include/serno.h:
27 @if [ -d .git ]; then \
28 revh=`git log -1 --date=format:%Y%m%d --pretty=format:%cd-%h`; \
29 datecode=`git log -1 --pretty=format:%ct`; \
30 if [ -n "$$revh" ]; then \
31 echo '#define SERNO "'$$revh'"' >include/serno.h ; \
32 echo "#define DATECODE $${datecode}UL" >>include/serno.h; \
33 fi \
34 fi
35 @if [ ! -f include/serno.h ]; then \
36 echo '#define SERNO "unknown"' >include/serno.h; \
37 echo '#define DATECODE 0UL' >>include/serno.h; \
38 fi
39
40 install-data-hook:
41 test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir}
42
43 install-exec-hook:
44 rm -f ${DESTDIR}${moduledir}/*.la
45 rm -f ${DESTDIR}${moduledir}/autoload/*.la
46 rm -f ${DESTDIR}${moduledir}/extensions/*.la
47 rm -f ${DESTDIR}${moduledir}/*.dll.a
48 rm -f ${DESTDIR}${moduledir}/autoload/*.dll.a
49 rm -f ${DESTDIR}${moduledir}/extensions/*.dll.a
50
51 distclean-local:
52 rm -f librb/include/librb-config.h
53
54 clean-local:
55 rm -f include/serno.h
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