]> jfr.im git - solanum.git/blame - doc/Makefile.am
Merge pull request #330 from edk0/caps-before-init
[solanum.git] / doc / Makefile.am
CommitLineData
c52df125
AC
1prefix = @prefix@
2exec_prefix = @exec_prefix@
3exec_suffix = @exec_suffix@
4bindir = @bindir@
5libexecdir = @libexecdir@
6sysconfdir = @sysconfdir@
7localstatedir = @localstatedir@
8
9# Local to the etc Makefile
c52df125
AC
10
11CONFS = ircd.conf.example reference.conf
12
13install-mkdirs:
14 -@if test ! -d $(DESTDIR)$(sysconfdir); then \
15 echo "mkdir -p $(sysconfdir)"; \
16 mkdir -p $(DESTDIR)$(sysconfdir); \
17 fi
18
79b52505 19install: install-mkdirs
c52df125
AC
20 @echo "ircd: installing example config files ($(CONFS))"
21 @for i in $(CONFS); do \
22 if test -f $(DESTDIR)$(sysconfdir)/$$i; then \
23 $(MV) $(DESTDIR)$(sysconfdir)/$$i $(DESTDIR)$(sysconfdir)/$$i.old; \
24 fi; \
25 $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
26 done
27
28 -@if test ! -f $(DESTDIR)$(sysconfdir)/ircd.motd; then \
29 echo "ircd: installing motd file (ircd.motd)"; \
30 $(INSTALL_DATA) ircd.motd $(DESTDIR)$(sysconfdir); \
31 fi
32
33 -@if test -f $(DESTDIR)$(sysconfdir)/links.txt; then \
34 $(RM) $(DESTDIR)$(sysconfdir)/links.txt; \
35 fi
36