python: Fix rule for generating docs using pydoctor.
[Samba/eduardoll.git] / source4 / scripting / python / config.mk
blobd36e136346045500d047d7928ed4be93640fd536
1 [SUBSYSTEM::LIBPYTHON]
2 PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON
3 PRIVATE_DEPENDENCIES = PYTALLOC
4 INIT_FUNCTION_SENTINEL = { NULL, NULL }
6 LIBPYTHON_OBJ_FILES = $(addprefix $(pyscriptsrcdir)/, modules.o)
8 [SUBSYSTEM::PYTALLOC]
9 PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON LIBTALLOC
11 PYTALLOC_OBJ_FILES = ../lib/talloc/pytalloc.o
13 [PYTHON::python_uuid]
14 PRIVATE_DEPENDENCIES = LIBNDR
16 python_uuid_OBJ_FILES = $(pyscriptsrcdir)/uuidmodule.o
18 [PYTHON::python_glue]
19 LIBRARY_REALNAME = samba/glue.$(SHLIBEXT)
20 PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS pyldb python_dcerpc_misc python_dcerpc_security pyauth pyldb_util pyparam_util
22 python_glue_OBJ_FILES = $(pyscriptsrcdir)/pyglue.o
24 $(python_glue_OBJ_FILES): CFLAGS+=-I$(ldbsrcdir)
26 _PY_FILES = $(shell find $(pyscriptsrcdir)/samba ../lib/subunit/python -type f -name "*.py")
28 $(eval $(foreach pyfile, $(_PY_FILES),$(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(subst ../lib/subunit/python,,$(pyfile))),$(pyfile))))
30 PYDOCTOR = pydoctor
31 PYDOCTOR_OPTIONS = --project-name Samba --project-url http://www.samba.org/ \
32 --make-html
33 pydoctor:: pythonmods
34 LD_LIBRARY_PATH=bin/shared PYTHONPATH=$(pythonbuilddir) pydoctor --project-name=Samba --project-url=http://www.samba.org/ --make-html --docformat=restructuredtext $(addprefix --add-package $(pythonbuilddir)/, samba)
36 install:: installpython
38 PYFLAKES = pyflakes
40 pyflakes::
41 $(PYFLAKES) $(pyscriptsrcdir)/samba
43 PYLINT = pylint
45 pylint:: pythonmods
46 PYTHONPATH=$(pyscriptsrcdir) $(PYLINT) -f parseable samba