]> arthur.barton.de Git - ngircd.git/blob - doc/Makefile.am
doc: change path names in sample-ngircd.conf depending on sysconfdir
[ngircd.git] / doc / Makefile.am
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001-2010 Alexander Barton (alex@barton.de)
4 #
5 # Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 # der GNU General Public License (GPL), wie von der Free Software Foundation
7 # herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 # der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
11 #
12
13 .tmpl:
14         sed \
15             -e s@:ETCDIR:@${sysconfdir}@ \
16             <$< >$@
17
18 SUFFIXES = .tmpl
19
20 SUBDIRS = src
21
22 EXTRA_DIST = FAQ.txt GIT.txt Protocol.txt Platforms.txt README-AUX.txt \
23         README-BeOS.txt RFC.txt Services.txt SSL.txt Zeroconf.txt \
24         HowToRelease.txt sample-ngircd.conf
25
26 maintainer-clean-local:
27         rm -f Makefile Makefile.in
28
29 documents = $(EXTRA_DIST) ../AUTHORS ../COPYING ../ChangeLog ../INSTALL \
30         ../NEWS ../README
31
32 install-data-hook: $(documents)
33         $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
34         if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
35           $(INSTALL) -m 600 -c $(srcdir)/sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
36          fi
37         $(mkinstalldirs) $(DESTDIR)$(docdir)
38         for f in $(documents); do \
39           $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
40          done
41
42 uninstall-hook:
43         rm -rf $(DESTDIR)$(docdir)
44
45 srcdoc:
46         make -C src srcdoc
47
48 # -eof-