1 # $Id: Makefile.in 3376 2007-04-03 11:37:39Z nenolod $
4 INSTALL_BIN = @INSTALL_PROGRAM@
5 INSTALL_DATA = @INSTALL_DATA@
6 INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
10 CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
19 exec_prefix = @exec_prefix@
20 exec_suffix = @exec_suffix@
22 libexecdir = @libexecdir@
24 localstatedir = @localstatedir@
25 # Change this later! -- adrian
26 moduledir = @moduledir@
27 automoduledir = @moduledir@/autoload
29 # Local to the etc Makefile
30 mandir = @mandir@/man8
33 CONFS = example.conf reference.conf
34 DEFAULTCONFS = kline.conf dline.conf xline.conf resv.conf
37 SSL_INCLUDES = @SSL_INCLUDES@
39 IRCDLIBS = @LIBS@ $(SSL_LIBS)
41 INCLUDES = -I../include $(SSL_INCLUDES)
42 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
47 -@if test ! -d $(DESTDIR)$(confdir); then \
48 echo "mkdir -p $(confdir)"; \
49 mkdir -p $(DESTDIR)$(confdir); \
52 -@if test ! -d $(DESTDIR)$(mandir); then \
53 echo "mkdir -p $(mandir)"; \
54 mkdir -p $(DESTDIR)$(mandir); \
57 install: install-mkdirs build
58 @echo "ircd: installing example config files ($(CONFS))"
59 @for i in $(CONFS); do \
60 if test -f $(DESTDIR)$(confdir)/$$i; then \
61 $(MV) $(DESTDIR)$(confdir)/$$i $(DESTDIR)$(confdir)/$$i.old; \
63 $(INSTALL_DATA) $$i $(DESTDIR)$(confdir); \
66 @for i in $(DEFAULTCONFS); do \
67 if test ! -f $(DESTDIR)$(confdir)/$$i; then \
68 echo "ircd: creating config file ($$i)"; \
69 ${TOUCH} $(DESTDIR)$(confdir)/$$i; \
73 -@if test ! -f $(DESTDIR)$(confdir)/ircd.motd; then \
74 echo "ircd: installing motd file (ircd.motd)"; \
75 $(INSTALL_DATA) ircd.motd $(DESTDIR)$(confdir); \
78 -@if test -f $(DESTDIR)$(confdir)/links.txt; then \
79 $(RM) $(DESTDIR)$(confdir)/links.txt; \
82 @echo "ircd: installing manpage"
83 @for i in $(MANPAGES); do \
84 if test ! -f $(DESTDIR)$(mandir)/$$i; then \
85 $(INSTALL_DATA) $$i $(DESTDIR)$(mandir); \