]> arthur.barton.de Git - ngircd-alex.git/blob - doc/Makefile.am
Added doc/Modes.txt: document modes supported by ngIRCd
[ngircd-alex.git] / doc / Makefile.am
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001-2011 Alexander Barton (alex@barton.de) and Contributors
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 # Please read the file COPYING, README and AUTHORS for more information.
10 #
11
12 .tmpl:
13         sed \
14             -e s@:ETCDIR:@${sysconfdir}@ \
15             <$< >$@
16
17 SUFFIXES = .tmpl
18
19 static_docs = Bopm.txt FAQ.txt GIT.txt HowToRelease.txt Modes.txt PAM.txt \
20         Platforms.txt Protocol.txt README-AUX.txt README-BeOS.txt \
21         README-Interix.txt RFC.txt SSL.txt Services.txt
22
23 doc_templates = sample-ngircd.conf.tmpl
24
25 generated_docs = sample-ngircd.conf
26
27 toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README
28
29 SUBDIRS = src
30
31 EXTRA_DIST = $(static_docs) $(doc_templates)
32
33 CLEANFILES = $(generated_docs)
34
35 maintainer-clean-local:
36         rm -f Makefile Makefile.in
37
38 all: $(generated_docs)
39
40 install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
41         $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
42         if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
43           $(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
44          fi
45         $(mkinstalldirs) $(DESTDIR)$(docdir)
46         for f in $(static_docs) $(toplevel_docs); do \
47           $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
48          done
49         for f in $(generated_docs); do \
50           $(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \
51          done
52
53 uninstall-hook:
54         rm -rf $(DESTDIR)$(docdir)
55
56 srcdoc:
57         make -C src srcdoc
58
59 # -eof-