You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ns...@apache.org on 2008/06/19 23:46:47 UTC

svn commit: r669710 - /incubator/couchdb/branches/runtimeconfig/src/couchdb/Makefile.am

Author: nslater
Date: Thu Jun 19 14:46:47 2008
New Revision: 669710

URL: http://svn.apache.org/viewvc?rev=669710&view=rev
Log:
experimental documentation generation

Modified:
    incubator/couchdb/branches/runtimeconfig/src/couchdb/Makefile.am

Modified: incubator/couchdb/branches/runtimeconfig/src/couchdb/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/runtimeconfig/src/couchdb/Makefile.am?rev=669710&r1=669709&r2=669710&view=diff
==============================================================================
--- incubator/couchdb/branches/runtimeconfig/src/couchdb/Makefile.am (original)
+++ incubator/couchdb/branches/runtimeconfig/src/couchdb/Makefile.am Thu Jun 19 14:46:47 2008
@@ -83,6 +83,19 @@
 	$@ < $<
 	chmod +x $@
 
+nobase_dist_localdata_DATA = doc
+
+doc: $(couch_file_collection)
+	mkdir -p doc
+	cd doc && \
+	for file in $(couch_file_collection); do \
+	    if test -n "$$edoc_files"; then \
+	        edoc_files="$$edoc_files, "; \
+	    fi; \
+	    edoc_files="$$edoc_files \"../$$file\""; \
+	done; \
+	erl -noshell -run edoc_run files ["$$edoc_files"]
+
 %.beam: %.erl
 	$(ERLC) $<
 
@@ -97,3 +110,4 @@
 	if test -f "$(DESTDIR)/$(couchprivlibdir)/couch_erl_driver"; then \
 	    rm -f "$(DESTDIR)/$(couchprivlibdir)/couch_erl_driver.so"; \
 	fi
+