2002-01-02 02:40:31 +00:00
|
|
|
#
|
|
|
|
# ngIRCd -- The Next Generation IRC Daemon
|
2024-01-09 14:52:34 +00:00
|
|
|
# Copyright (c)2001-2024 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:
|
2012-09-15 17:15:16 +00:00
|
|
|
$(AM_V_GEN)sed \
|
2012-12-25 18:13:55 +00:00
|
|
|
-e "s@:ETCDIR:@${sysconfdir}@" \
|
2013-01-01 18:25:06 +00:00
|
|
|
-e "s@:DOCDIR:@${docdir}@" \
|
2010-11-01 22:47:04 +00:00
|
|
|
<$< >$@
|
|
|
|
|
|
|
|
SUFFIXES = .tmpl
|
|
|
|
|
2012-03-31 10:52:58 +00:00
|
|
|
static_docs = \
|
|
|
|
Bopm.txt \
|
2012-03-31 13:59:06 +00:00
|
|
|
Capabilities.txt \
|
2013-01-01 14:09:09 +00:00
|
|
|
Commands.txt \
|
2024-02-09 21:58:44 +00:00
|
|
|
Container.md \
|
2012-09-24 15:40:33 +00:00
|
|
|
Contributing.txt \
|
2024-01-09 14:52:34 +00:00
|
|
|
FAQ.md \
|
2012-03-31 10:52:58 +00:00
|
|
|
HowToRelease.txt \
|
|
|
|
Modes.txt \
|
|
|
|
PAM.txt \
|
|
|
|
Platforms.txt \
|
|
|
|
Protocol.txt \
|
|
|
|
README-AUX.txt \
|
|
|
|
README-BeOS.txt \
|
|
|
|
README-Interix.txt \
|
|
|
|
RFC.txt \
|
|
|
|
Services.txt \
|
2024-01-08 17:31:30 +00:00
|
|
|
SSL.md
|
2010-11-03 22:47:21 +00:00
|
|
|
|
|
|
|
doc_templates = sample-ngircd.conf.tmpl
|
|
|
|
|
|
|
|
generated_docs = sample-ngircd.conf
|
|
|
|
|
2024-01-20 13:03:17 +00:00
|
|
|
toplevel_docs = ../AUTHORS.md ../COPYING ../ChangeLog ../INSTALL.md ../NEWS ../README.md
|
2010-11-03 22:47:21 +00:00
|
|
|
|
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)
|
2014-01-17 20:04:10 +00:00
|
|
|
$(MKDIR_P) -m 755 $(DESTDIR)$(sysconfdir)
|
2012-08-18 21:50:20 +00:00
|
|
|
@if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
|
2020-04-20 17:29:16 +00:00
|
|
|
${MAKE} install-config; \
|
2003-03-30 13:31:17 +00:00
|
|
|
fi
|
2014-01-17 20:04:10 +00:00
|
|
|
$(MKDIR_P) -m 755 $(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
|
|
|
|
2012-08-18 21:50:20 +00: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 13:45:29 +00:00
|
|
|
uninstall-hook:
|
|
|
|
rm -rf $(DESTDIR)$(docdir)
|
2012-08-18 21:50:20 +00:00
|
|
|
@if cmp --silent sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; then \
|
2020-04-20 17:29:16 +00:00
|
|
|
${MAKE} uninstall-config; \
|
2012-08-18 21:50:20 +00:00
|
|
|
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 13:45:29 +00:00
|
|
|
|
2024-02-09 23:03:13 +00:00
|
|
|
.PHONY: install-config uninstall-config
|
2012-08-18 21:50:20 +00:00
|
|
|
|
2001-12-31 02:22:29 +00:00
|
|
|
# -eof-
|