X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile.am;h=92e5f8f637872fe62c3474e3bdaa5611ec4db552;hb=553e8b6aa3fd7bcf9e8c1f586c16c2b8ae16f877;hp=1e5773ecd5ba982e3529d810ba4ff83c3af97bbf;hpb=01c39ba0015f715b2082f5ed54dc769d09c09bd0;p=ngircd-alex.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 1e5773ec..92e5f8f6 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -10,27 +10,46 @@ # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. # +.tmpl: + sed \ + -e s@:ETCDIR:@${sysconfdir}@ \ + <$< >$@ + +SUFFIXES = .tmpl + +static_docs = Bopm.txt FAQ.txt GIT.txt HowToRelease.txt PAM.txt Platforms.txt \ + Protocol.txt README-AUX.txt README-BeOS.txt README-Interix.txt RFC.txt \ + SSL.txt Services.txt + +doc_templates = sample-ngircd.conf.tmpl + +generated_docs = sample-ngircd.conf + +toplevel_docs = ../AUTHORS ../COPYING ../ChangeLog ../INSTALL ../NEWS ../README + SUBDIRS = src -EXTRA_DIST = FAQ.txt GIT.txt Protocol.txt Platforms.txt README-AUX.txt \ - README-BeOS.txt RFC.txt Services.txt SSL.txt Zeroconf.txt \ - HowToRelease.txt sample-ngircd.conf +EXTRA_DIST = $(static_docs) $(doc_templates) + +CLEANFILES = $(generated_docs) maintainer-clean-local: rm -f Makefile Makefile.in -documents = $(EXTRA_DIST) ../AUTHORS ../COPYING ../ChangeLog ../INSTALL \ - ../NEWS ../README +all: $(generated_docs) -install-data-hook: +install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs) $(mkinstalldirs) $(DESTDIR)$(sysconfdir) if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \ - $(INSTALL) -m 600 -c $(srcdir)/sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \ + $(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \ fi $(mkinstalldirs) $(DESTDIR)$(docdir) - for f in $(documents); do \ + 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 uninstall-hook: rm -rf $(DESTDIR)$(docdir)