2 exec_prefix = @exec_prefix@
3 exec_suffix = @exec_suffix@
5 libexecdir = @libexecdir@
6 sysconfdir = @sysconfdir@
7 localstatedir = @localstatedir@
9 # Local to the etc Makefile
11 CONFS = ircd.conf.example reference.conf
14 -@if test ! -d $(DESTDIR)$(sysconfdir); then \
15 echo "mkdir -p $(sysconfdir)"; \
16 mkdir -p $(DESTDIR)$(sysconfdir); \
19 install: install-mkdirs
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; \
25 $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
28 -@if test ! -f $(DESTDIR)$(sysconfdir)/ircd.motd; then \
29 echo "ircd: installing motd file (ircd.motd)"; \
30 $(INSTALL_DATA) ircd.motd $(DESTDIR)$(sysconfdir); \
33 -@if test -f $(DESTDIR)$(sysconfdir)/links.txt; then \
34 $(RM) $(DESTDIR)$(sysconfdir)/links.txt; \