2002-01-02 03:40:31 +01:00
|
|
|
#
|
|
|
|
# ngIRCd -- The Next Generation IRC Daemon
|
2012-03-31 12:52:58 +02:00
|
|
|
# Copyright (c)2001-2012 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
|
|
|
|
|
2012-03-31 12:52:58 +02:00
|
|
|
static_docs = \
|
|
|
|
Bopm.txt \
|
2012-03-31 15:59:06 +02:00
|
|
|
Capabilities.txt \
|
2012-03-31 12:52:58 +02:00
|
|
|
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 \
|
|
|
|
Services.txt \
|
|
|
|
SSL.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)
|
2012-08-18 23:50:20 +02:00
|
|
|
@if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
|
|
|
|
make install-config; \
|
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
|
|
|
|
2012-08-18 23:50:20 +02:00
|
|
|
install-config:
|
|
|
|
$(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf
|
|
|
|
@echo; \
|
|
|
|
echo " ** NOTE: Installed sample configuration file:"; \
|
|
|
|
echo " ** \"$(DESTDIR)$(sysconfdir)/ngircd.conf\""; \
|
|
|
|
echo
|
|
|
|
|
2003-03-30 15:45:29 +02:00
|
|
|
uninstall-hook:
|
|
|
|
rm -rf $(DESTDIR)$(docdir)
|
2012-08-18 23:50:20 +02:00
|
|
|
@if cmp --silent sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; then \
|
|
|
|
make uninstall-config; \
|
|
|
|
else \
|
|
|
|
echo; \
|
|
|
|
echo " ** NOTE: Not uninstalling changed configuration file:"; \
|
|
|
|
echo " ** \"$(DESTDIR)$(sysconfdir)/ngircd.conf\""; \
|
|
|
|
echo; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
uninstall-config:
|
|
|
|
rm -f $(DESTDIR)$(sysconfdir)/ngircd.conf
|
2003-03-30 15:45:29 +02:00
|
|
|
|
2005-07-22 23:00:22 +02:00
|
|
|
srcdoc:
|
|
|
|
make -C src srcdoc
|
|
|
|
|
2012-08-18 23:50:20 +02:00
|
|
|
.PHONY: install-config uninstall-config srcdoc
|
|
|
|
|
2001-12-31 03:22:29 +01:00
|
|
|
# -eof-
|