changeset 9436:5763caa55b57 HEAD

--without-docs: make install no longer installs any docs.
author Timo Sirainen <tss@iki.fi>
date Thu, 15 Oct 2009 20:56:11 -0400
parents 0aa7357761a5
children 00757d350812
files doc/Makefile.am doc/wiki/Makefile.am.in
diffstat 2 files changed, 16 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/doc/Makefile.am	Thu Oct 15 20:38:24 2009 -0400
+++ b/doc/Makefile.am	Thu Oct 15 20:56:11 2009 -0400
@@ -1,5 +1,15 @@
 SUBDIRS = wiki
 
+docfiles = \
+	auth-protocol.txt \
+	documentation.txt \
+	securecoding.txt \
+	thread-refs.txt
+
+if BUILD_DOCS
+doc_DATA = $(docfiles)
+endif
+
 confdir = $(sysconfdir)
 conf_DATA = \
 	dovecot-db-example.conf \
@@ -7,16 +17,10 @@
 	dovecot-ldap-example.conf \
 	dovecot-sql-example.conf
 
-doc_DATA = \
-	auth-protocol.txt \
-	documentation.txt \
-	securecoding.txt \
-	thread-refs.txt
-
 EXTRA_DIST = \
 	dovecot-initd.sh \
 	mkcert.sh \
 	dovecot-openssl.cnf \
 	solr-schema.xml \
-	$(doc_DATA) \
+	$(docfiles) \
 	$(conf_DATA)
--- a/doc/wiki/Makefile.am.in	Thu Oct 15 20:38:24 2009 -0400
+++ b/doc/wiki/Makefile.am.in	Thu Oct 15 20:56:11 2009 -0400
@@ -1,6 +1,9 @@
+if BUILD_DOCS
 wikidir = $(docdir)/wiki
+wiki_DATA = $(wikifiles)
+endif
 
 EXTRA_DIST = \
-	$(wiki_DATA)
+	$(wikifiles)
 
-wiki_DATA = 
\ No newline at end of file
+wikifiles = \
\ No newline at end of file