2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001-2011 Alexander Barton (alex@barton.de) and Contributors
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.
14 -e s@:ETCDIR:@${sysconfdir}@ \
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
23 doc_templates = sample-ngircd.conf.tmpl
25 generated_docs = sample-ngircd.conf
27 toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README
31 EXTRA_DIST = $(static_docs) $(doc_templates)
33 CLEANFILES = $(generated_docs)
35 maintainer-clean-local:
36 rm -f Makefile Makefile.in
38 all: $(generated_docs)
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; \
45 $(mkinstalldirs) $(DESTDIR)$(docdir)
46 for f in $(static_docs) $(toplevel_docs); do \
47 $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
49 for f in $(generated_docs); do \
50 $(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \
54 rm -rf $(DESTDIR)$(docdir)