]> jfr.im git - solanum.git/blame - doc/Makefile.am
ircd: implement support for remote module load/unload/etc commands
[solanum.git] / doc / Makefile.am
CommitLineData
c52df125
AC
1# $Id: Makefile.in 3376 2007-04-03 11:37:39Z nenolod $
2prefix = @prefix@
3exec_prefix = @exec_prefix@
4exec_suffix = @exec_suffix@
5bindir = @bindir@
6libexecdir = @libexecdir@
7sysconfdir = @sysconfdir@
8localstatedir = @localstatedir@
9
10# Local to the etc Makefile
11mandir = @mandir@/man8
12MANPAGES = ircd.8
13
14CONFS = ircd.conf.example reference.conf
15
16install-mkdirs:
17 -@if test ! -d $(DESTDIR)$(sysconfdir); then \
18 echo "mkdir -p $(sysconfdir)"; \
19 mkdir -p $(DESTDIR)$(sysconfdir); \
20 fi
21
22 -@if test ! -d $(DESTDIR)$(mandir); then \
23 echo "mkdir -p $(mandir)"; \
24 mkdir -p $(DESTDIR)$(mandir); \
25 fi
26
79b52505 27install: install-mkdirs
c52df125
AC
28 @echo "ircd: installing example config files ($(CONFS))"
29 @for i in $(CONFS); do \
30 if test -f $(DESTDIR)$(sysconfdir)/$$i; then \
31 $(MV) $(DESTDIR)$(sysconfdir)/$$i $(DESTDIR)$(sysconfdir)/$$i.old; \
32 fi; \
33 $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
34 done
35
36 -@if test ! -f $(DESTDIR)$(sysconfdir)/ircd.motd; then \
37 echo "ircd: installing motd file (ircd.motd)"; \
38 $(INSTALL_DATA) ircd.motd $(DESTDIR)$(sysconfdir); \
39 fi
40
41 -@if test -f $(DESTDIR)$(sysconfdir)/links.txt; then \
42 $(RM) $(DESTDIR)$(sysconfdir)/links.txt; \
43 fi
44
45 @echo "ircd: installing manpage"
46 @for i in $(MANPAGES); do \
47 if test ! -f $(DESTDIR)$(mandir)/$(PROGRAM_PREFIX)$$i; then \
48 $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/$(PROGRAM_PREFIX)$$i; \
49 fi; \
50 done