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}@ \
35 doc_templates = sample-ngircd.conf.tmpl
37 generated_docs = sample-ngircd.conf
39 toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README
43 EXTRA_DIST = $(static_docs) $(doc_templates)
45 CLEANFILES = $(generated_docs)
47 maintainer-clean-local:
48 rm -f Makefile Makefile.in
50 all: $(generated_docs)
52 install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
53 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
54 if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
55 $(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
57 $(mkinstalldirs) $(DESTDIR)$(docdir)
58 for f in $(static_docs) $(toplevel_docs); do \
59 $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
61 for f in $(generated_docs); do \
62 $(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \
66 rm -rf $(DESTDIR)$(docdir)