aboutsummaryrefslogtreecommitdiff
path: root/doc/api/python/Makefile.am
diff options
context:
space:
mode:
authorAvatar Piotr JaroszyƄski <peper@gentoo.org> 2007-11-13 21:57:31 +0000
committerAvatar Piotr JaroszyƄski <peper@gentoo.org> 2007-11-13 21:57:31 +0000
commitba68c346ded62b46d6881cef4a9fb12e766c07fb (patch)
tree35dfdaac33993b4ae9831d4c1fb975ed101eb3fa /doc/api/python/Makefile.am
parenta4c612707f13c41d94a15e62adb64ab75b03a988 (diff)
downloadpaludis-ba68c346ded62b46d6881cef4a9fb12e766c07fb.tar.gz
paludis-ba68c346ded62b46d6881cef4a9fb12e766c07fb.tar.xz
(python) Start of examples.
Diffstat (limited to 'doc/api/python/Makefile.am')
-rw-r--r--doc/api/python/Makefile.am18
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/api/python/Makefile.am b/doc/api/python/Makefile.am
index f8d8d7dff..f6a679ef2 100644
--- a/doc/api/python/Makefile.am
+++ b/doc/api/python/Makefile.am
@@ -2,7 +2,16 @@ SUBDIRS = .
CLEANFILES = *~ python/*
MAINTAINERCLEANFILES = Makefile.in
-EXTRA_DIST = epydoc.css
+
+examples = \
+ example_command_line.py \
+ example_version_spec.py
+
+EXTRA_DIST = epydoc.css \
+ python_syntax.css \
+ $(examples)
+
+dist_noinst_SCRIPTS = create_python_examples.py
if ENABLE_PYTHON
@@ -10,9 +19,9 @@ all-local : epydoc
epydoc : python
-python : epydoc.css
+python : epydoc.css python_syntax.css create_python_examples.py $(examples)
rm -fr python
- mkdir -p python
+ mkdir python
env \
LD_LIBRARY_PATH=`echo "\`$(top_srcdir)/paludis/repositories/e/ebuild/utils/canonicalise $(top_builddir)/paludis/.libs\`: \
\`$(top_srcdir)/paludis/repositories/e/ebuild/utils/canonicalise $(top_builddir)/paludis/util/.libs\`: \
@@ -26,6 +35,9 @@ python : epydoc.css
PYTHONPATH="./.libs" \
epydoc -n Paludis -o python -u http://paludis.pioto.org --no-frames -c $(srcdir)/epydoc.css \
$(top_builddir)/python/paludis.so
+ $(PYTHON) $(srcdir)/create_python_examples.py $(srcdir) $(examples)
+ cp $(srcdir)/python_syntax.css python/
+
install-data-local :
mkdir -p $(DESTDIR)$(htmldir)/api