r26480: Add utility class for testing LDB code.
[ira/wip.git] / source / scripting / python / config.mk
1 [PYTHON::python_uuid]
2 PRIVATE_DEPENDENCIES = LIBNDR 
3 OBJ_FILES = uuidmodule.o
4
5 [PYTHON::python_misc]
6 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB
7 SWIG_FILE = misc.i
8
9 # Swig extensions
10 swig: pythonmods
11
12 .SUFFIXES: _wrap.c .i
13
14 .i_wrap.c:
15         [ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -I$(srcdir)/scripting/swig -python -keyword $<
16
17 realdistclean::
18         @echo "Removing SWIG output files"
19         @-rm -f bin/python/*
20         # FIXME: Remove _wrap.c files
21
22 pythonmods: $(PYTHON_DSOS)
23
24 PYDOCTOR_MODULES=bin/python/ldb.py bin/python/auth.py bin/python/credentials.py bin/python/registry.py bin/python/tdb.py bin/python/security.py
25
26 pydoctor:: pythonmods
27         LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))
28
29 clean::
30         @echo "Removing python modules"
31         @rm -f bin/python/*