1 # $Id: Makefile.in 3376 2007-04-03 11:37:39Z nenolod $
3 exec_prefix = @exec_prefix@
4 exec_suffix = @exec_suffix@
6 libexecdir = @libexecdir@
7 sysconfdir = @sysconfdir@
8 localstatedir = @localstatedir@
10 # Local to the etc Makefile
11 mandir = @mandir@/man8
14 CONFS = ircd.conf.example reference.conf
17 -@if test ! -d $(DESTDIR)$(sysconfdir); then \
18 echo "mkdir -p $(sysconfdir)"; \
19 mkdir -p $(DESTDIR)$(sysconfdir); \
22 -@if test ! -d $(DESTDIR)$(mandir); then \
23 echo "mkdir -p $(mandir)"; \
24 mkdir -p $(DESTDIR)$(mandir); \
27 install: install-mkdirs
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; \
33 $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
36 -@if test ! -f $(DESTDIR)$(sysconfdir)/ircd.motd; then \
37 echo "ircd: installing motd file (ircd.motd)"; \
38 $(INSTALL_DATA) ircd.motd $(DESTDIR)$(sysconfdir); \
41 -@if test -f $(DESTDIR)$(sysconfdir)/links.txt; then \
42 $(RM) $(DESTDIR)$(sysconfdir)/links.txt; \
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; \