repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 47faa8595aabc7eb0ab12d4901e82c648facbe1e:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 47faa8595aabc7eb0ab12d4901e82c648facbe1e
Author: Alexander Barton 
Date:   Sun Mar 30 13:31:17 2003 +0000

    Install documentation files in $(datadir)/doc/ngircd.

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 56378951a03172781a7a02d19e04d81ab42a666c..
index ..1d1e3b4b60c6c059962f977d4762213734c4fb49 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -9,7 +9,7 @@
 # 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.12 2003/03/15 11:00:31 alex Exp $
+# $Id: Makefile.am,v 1.13 2003/03/30 13:31:17 alex Exp $
 #

 EXTRA_DIST = CVS.txt FAQ.txt Protocol.txt README-AUX.txt \
@@ -18,10 +18,19 @@ EXTRA_DIST = CVS.txt FAQ.txt Protocol.txt README-AUX.txt \
 maintainer-clean-local:
 	rm -f Makefile Makefile.in

+docdir = $(datadir)/doc/ngircd
+
+documents = $(EXTRA_DIST) ../AUTHORS ../COPYING ../ChangeLog ../INSTALL \
+	../NEWS ../README
+
 install-data-hook:
 	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
 	if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
 	  $(INSTALL) -m 600 -c $(srcdir)/sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
-	  fi
+	 fi
+	$(mkinstalldirs) $(DESTDIR)$(docdir)
+	for f in $(documents); do \
+	  $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
+	 done

 # -eof-

-----END OF PAGE-----