2002-01-02 03:40:31 +01:00
|
|
|
#
|
|
|
|
# ngIRCd -- The Next Generation IRC Daemon
|
2011-08-26 16:16:53 +02:00
|
|
|
# Copyright (c)2001-2011 Alexander Barton (alex@barton.de) and Contributors
|
2002-01-02 03:40:31 +01:00
|
|
|
#
|
2011-08-26 16:16:53 +02: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 03:40:31 +01:00
|
|
|
#
|
2001-12-31 03:22:29 +01:00
|
|
|
|
2010-11-01 23:47:04 +01:00
|
|
|
.tmpl:
|
|
|
|
sed \
|
|
|
|
-e s@:ETCDIR:@${sysconfdir}@ \
|
|
|
|
<$< >$@
|
|
|
|
|
|
|
|
SUFFIXES = .tmpl
|
|
|
|
|
2011-08-26 16:16:53 +02: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 23:47:21 +01:00
|
|
|
|
|
|
|
doc_templates = sample-ngircd.conf.tmpl
|
|
|
|
|
|
|
|
generated_docs = sample-ngircd.conf
|
|
|
|
|
|
|
|
toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README
|
|
|
|
|
2005-07-22 23:00:22 +02:00
|
|
|
SUBDIRS = src
|
|
|
|
|
2010-11-03 23:47:21 +01:00
|
|
|
EXTRA_DIST = $(static_docs) $(doc_templates)
|
|
|
|
|
|
|
|
CLEANFILES = $(generated_docs)
|
2001-12-31 03:22:29 +01:00
|
|
|
|
2001-12-31 03:45:24 +01:00
|
|
|
maintainer-clean-local:
|
|
|
|
rm -f Makefile Makefile.in
|
|
|
|
|
2010-11-03 23:47:21 +01:00
|
|
|
all: $(generated_docs)
|
2003-03-30 15:31:17 +02:00
|
|
|
|
2010-11-03 23:47:21 +01:00
|
|
|
install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
|
2002-03-10 18:05:23 +01:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
2002-03-30 16:33:14 +01:00
|
|
|
if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
|
2010-11-03 23:47:21 +01:00
|
|
|
$(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
|
2003-03-30 15:31:17 +02:00
|
|
|
fi
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdir)
|
2010-11-03 23:47:21 +01:00
|
|
|
for f in $(static_docs) $(toplevel_docs); do \
|
2003-03-30 15:31:17 +02:00
|
|
|
$(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
|
|
|
|
done
|
2010-11-03 23:47:21 +01:00
|
|
|
for f in $(generated_docs); do \
|
|
|
|
$(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \
|
|
|
|
done
|
2002-03-10 18:05:23 +01:00
|
|
|
|
2003-03-30 15:45:29 +02:00
|
|
|
uninstall-hook:
|
|
|
|
rm -rf $(DESTDIR)$(docdir)
|
|
|
|
|
2005-07-22 23:00:22 +02:00
|
|
|
srcdoc:
|
|
|
|
make -C src srcdoc
|
|
|
|
|
2001-12-31 03:22:29 +01:00
|
|
|
# -eof-
|