X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=doc%2FMakefile.am;h=cd51d7fe0de1d1c7d73231868f32068faf96b7ba;hp=d9bbc49590b2781787cce5f9580ab58f458f749c;hb=b1b83831d199cc893606e924255a8747c97cd572;hpb=317941d840ed4d4763dce6cf31da4e263562ded6 diff --git a/doc/Makefile.am b/doc/Makefile.am index d9bbc495..cd51d7fe 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,44 +1,93 @@ # # ngIRCd -- The Next Generation IRC Daemon -# Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) +# Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors # -# Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen -# der GNU General Public License (GPL), wie von der Free Software Foundation -# herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 -# der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. -# Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste -# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. -# -# $Id: Makefile.am,v 1.5 2002/03/10 17:05:23 alex Exp $ -# -# $Log: Makefile.am,v $ -# Revision 1.5 2002/03/10 17:05:23 alex -# - die Beispiel-Konfigurationsdatei wird als ngircd.conf installiert, -# wenn noch keine "echte" Konfigurationsdatei vorhanden ist. -# -# Revision 1.4 2002/02/25 14:10:38 alex -# - die neuen Texte werden nun auch in Archive ("make dist") aufgenommen ;-) -# -# Revision 1.3 2002/01/02 02:40:31 alex -# - Copyright-Text ergaenzt. -# -# Revision 1.2 2001/12/31 02:45:24 alex -# - nun werden alle generierten Dateien bei "maintainer-clean" geloescht. -# -# Revision 1.1 2001/12/31 02:22:29 alex -# - Makefile.am fuer das "doc"-Verzeichnis begonnen. +# 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. # -EXTRA_DIST = CC-Speed.txt CVS.txt FAQ.txt README-AUX.txt README-BeOS.txt \ - RFC.txt sample-ngircd.conf +.tmpl: + $(AM_V_GEN)sed \ + -e s@:ETCDIR:@${sysconfdir}@ \ + <$< >$@ + +SUFFIXES = .tmpl + +static_docs = \ + Bopm.txt \ + Capabilities.txt \ + Contributing.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 \ + Services.txt \ + SSL.txt + +doc_templates = sample-ngircd.conf.tmpl + +generated_docs = sample-ngircd.conf + +toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README + +SUBDIRS = src + +EXTRA_DIST = $(static_docs) $(doc_templates) + +CLEANFILES = $(generated_docs) maintainer-clean-local: rm -f Makefile Makefile.in -install-data-hook: +all: $(generated_docs) + +install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs) $(mkinstalldirs) $(DESTDIR)$(sysconfdir) - if [ ! -e $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \ - $(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \ - fi + @if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \ + make install-config; \ + fi + $(mkinstalldirs) $(DESTDIR)$(docdir) + for f in $(static_docs) $(toplevel_docs); do \ + $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \ + done + for f in $(generated_docs); do \ + $(INSTALL) -m 644 -c $$f $(DESTDIR)$(docdir)/; \ + done + +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 + +uninstall-hook: + rm -rf $(DESTDIR)$(docdir) + @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 + +srcdoc: + make -C src srcdoc + +.PHONY: install-config uninstall-config srcdoc # -eof-