summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-09-25 15:59:00 -0400
committerTavian Barnes <tavianator@gmail.com>2011-09-25 15:59:00 -0400
commit6f5735433e9766cbdeab6f151b44ed82e95d2863 (patch)
tree4cdf27012efcd45ff5c2fcd16491ce9dd0e2c101
parentff8999ebcfa0b358e56e9028d26562c59881dfad (diff)
downloaddimension-6f5735433e9766cbdeab6f151b44ed82e95d2863.tar.xz
Add `doc' target to libdimension-python, using pydoc.
-rw-r--r--.gitignore11
-rw-r--r--Makefile.am1
-rw-r--r--libdimension-python/Makefile.am9
3 files changed, 15 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 0b501ac..6c39551 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-# Files and folders created by aclocal, autoconf, automake, and libtoolize
+# Files and folders created by ./autogen.sh, ./configure, and make
/aclocal.m4
/autom4te.cache/
/compile
@@ -13,11 +13,6 @@
/py-compile
Makefile
Makefile.in
-
-# Documentation files created by make
-/*/doc
-Doxyfile
-__pycache__
libdimension-python/dimension.c
dimension/dimension
@@ -32,6 +27,10 @@ dimension/dimension
# Files created by `make bench'
/*/bench/*.bench
+# Files created by make doc
+/*/doc/
+Doxyfile
+
# Files and folders created by libtool
.libs/
*.l[oa]
diff --git a/Makefile.am b/Makefile.am
index 2fce5d7..b30def4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,5 +29,6 @@ bench:
doc:
cd libdimension && $(MAKE) $(AM_MAKEFLAGS) doc
+ cd libdimension-python && $(MAKE) $(AM_MAKEFLAGS) doc
.PHONY: bench doc
diff --git a/libdimension-python/Makefile.am b/libdimension-python/Makefile.am
index 90d7d45..5a8b528 100644
--- a/libdimension-python/Makefile.am
+++ b/libdimension-python/Makefile.am
@@ -37,3 +37,12 @@ dimension_la_LIBADD = $(top_builddir)/libdimension/libdimension.la
EXTRA_DIST = dimension.pyx \
dimension.pxd
+
+doc:
+ mkdir -p doc
+ PYTHONPATH=$(top_builddir)/libdimension-python/.libs pydoc -w dimension
+ mv dimension.html doc/
+clean-doc:
+ rm -rf doc
+
+.PHONY: doc