]> jfr.im git - solanum.git/blob - doc/Makefile.am
buildsystem: convert to automake + libtool
[solanum.git] / doc / Makefile.am
1 # $Id: Makefile.in 3376 2007-04-03 11:37:39Z nenolod $
2 prefix = @prefix@
3 exec_prefix = @exec_prefix@
4 exec_suffix = @exec_suffix@
5 bindir = @bindir@
6 libexecdir = @libexecdir@
7 sysconfdir = @sysconfdir@
8 localstatedir = @localstatedir@
9
10 # Local to the etc Makefile
11 mandir = @mandir@/man8
12 MANPAGES = ircd.8
13
14 CONFS = ircd.conf.example reference.conf
15
16 install-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
27 install: install-mkdirs build
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