2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001-2012 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}@ \
36 doc_templates = sample-ngircd.conf.tmpl
38 generated_docs = sample-ngircd.conf
40 toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README
44 EXTRA_DIST = $(static_docs) $(doc_templates)
46 CLEANFILES = $(generated_docs)
48 maintainer-clean-local:
49 rm -f Makefile Makefile.in
51 all: $(generated_docs)
53 install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
54 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
55 if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
56 $(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
58 $(mkinstalldirs) $(DESTDIR)$(docdir)
59 for f in $(static_docs) $(toplevel_docs); do \
60 $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
62 for f in $(generated_docs); do \
63 $(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \
67 rm -rf $(DESTDIR)$(docdir)