]> jfr.im git - solanum.git/blob - doc/Makefile.am
Documentation: Comment-out the OPM block and its options by default
[solanum.git] / doc / Makefile.am
1 prefix = @prefix@
2 exec_prefix = @exec_prefix@
3 exec_suffix = @exec_suffix@
4 bindir = @bindir@
5 libexecdir = @libexecdir@
6 sysconfdir = @sysconfdir@
7 localstatedir = @localstatedir@
8
9 # Local to the etc Makefile
10
11 CONFS = ircd.conf.example reference.conf
12
13 install-mkdirs:
14 -@if test ! -d $(DESTDIR)$(sysconfdir); then \
15 echo "mkdir -p $(sysconfdir)"; \
16 mkdir -p $(DESTDIR)$(sysconfdir); \
17 fi
18
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; \
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