2002-01-02 02:40:31 +00:00
|
|
|
#
|
|
|
|
# ngIRCd -- The Next Generation IRC Daemon
|
2011-08-26 14:16:53 +00:00
|
|
|
# Copyright (c)2001-2011 Alexander Barton (alex@barton.de) and Contributors
|
2002-01-02 02:40:31 +00:00
|
|
|
#
|
2011-08-26 14:16:53 +00:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
# Please read the file COPYING, README and AUTHORS for more information.
|
2002-01-02 02:40:31 +00:00
|
|
|
#
|
2001-12-31 02:22:29 +00:00
|
|
|
|
2010-11-01 22:47:04 +00:00
|
|
|
.tmpl:
|
|
|
|
sed \
|
|
|
|
-e s@:ETCDIR:@${sysconfdir}@ \
|
|
|
|
<$< >$@
|
|
|
|
|
|
|
|
SUFFIXES = .tmpl
|
|
|
|
|
2011-08-26 14:16:53 +00:00
|
|
|
static_docs = Bopm.txt FAQ.txt GIT.txt HowToRelease.txt Modes.txt PAM.txt \
|
|
|
|
Platforms.txt Protocol.txt README-AUX.txt README-BeOS.txt \
|
|
|
|
README-Interix.txt RFC.txt SSL.txt Services.txt
|
2010-11-03 22:47:21 +00:00
|
|
|
|
|
|
|
doc_templates = sample-ngircd.conf.tmpl
|
|
|
|
|
|
|
|
generated_docs = sample-ngircd.conf
|
|
|
|
|
|
|
|
toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README
|
|
|
|
|
2005-07-22 21:00:22 +00:00
|
|
|
SUBDIRS = src
|
|
|
|
|
2010-11-03 22:47:21 +00:00
|
|
|
EXTRA_DIST = $(static_docs) $(doc_templates)
|
|
|
|
|
|
|
|
CLEANFILES = $(generated_docs)
|
2001-12-31 02:22:29 +00:00
|
|
|
|
2001-12-31 02:45:24 +00:00
|
|
|
maintainer-clean-local:
|
|
|
|
rm -f Makefile Makefile.in
|
|
|
|
|
2010-11-03 22:47:21 +00:00
|
|
|
all: $(generated_docs)
|
2003-03-30 13:31:17 +00:00
|
|
|
|
2010-11-03 22:47:21 +00:00
|
|
|
install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
|
2002-03-10 17:05:23 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
2002-03-30 15:33:14 +00:00
|
|
|
if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
|
2010-11-03 22:47:21 +00:00
|
|
|
$(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
|
2003-03-30 13:31:17 +00:00
|
|
|
fi
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdir)
|
2010-11-03 22:47:21 +00:00
|
|
|
for f in $(static_docs) $(toplevel_docs); do \
|
2003-03-30 13:31:17 +00:00
|
|
|
$(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
|
|
|
|
done
|
2010-11-03 22:47:21 +00:00
|
|
|
for f in $(generated_docs); do \
|
|
|
|
$(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \
|
|
|
|
done
|
2002-03-10 17:05:23 +00:00
|
|
|
|
2003-03-30 13:45:29 +00:00
|
|
|
uninstall-hook:
|
|
|
|
rm -rf $(DESTDIR)$(docdir)
|
|
|
|
|
2005-07-22 21:00:22 +00:00
|
|
|
srcdoc:
|
|
|
|
make -C src srcdoc
|
|
|
|
|
2001-12-31 02:22:29 +00:00
|
|
|
# -eof-
|