ac923cb8d135d2ae11b27e08c45b8c34cb3d1838
[samba.git] / source4 / scripting / python / config.mk
1 [BINARY::smbpython]
2 PRIVATE_DEPENDENCIES = LIBPYTHON
3 OBJ_FILES = \
4                         smbpython.o
5
6 [PYTHON::python_uuid]
7 PRIVATE_DEPENDENCIES = LIBNDR 
8 OBJ_FILES = uuidmodule.o
9
10 [PYTHON::python_misc]
11 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB
12 SWIG_FILE = misc.i
13
14 # Swig extensions
15 swig: pythonmods
16
17 .SUFFIXES: _wrap.c .i
18
19 .i_wrap.c:
20         [ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -I$(srcdir)/scripting/swig -python -keyword $<
21
22 realdistclean::
23         @echo "Removing SWIG output files"
24         @-rm -f bin/python/*
25         # FIXME: Remove _wrap.c files
26
27 pythonmods: $(PYTHON_DSOS)
28
29 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
30
31 pydoctor:: pythonmods
32         LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))
33
34 clean::
35         @echo "Removing python modules"
36         @rm -f bin/python/*