mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
[SUBSYSTEM::LIBPYTHON]
|
|
PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON
|
|
PRIVATE_DEPENDENCIES = PYTALLOC
|
|
INIT_FUNCTION_SENTINEL = { NULL, NULL }
|
|
|
|
LIBPYTHON_OBJ_FILES = $(addprefix $(pyscriptsrcdir)/, modules.o)
|
|
|
|
[SUBSYSTEM::PYTALLOC]
|
|
PUBLIC_DEPENDENCIES = EXT_LIB_PYTHON LIBTALLOC
|
|
|
|
PYTALLOC_OBJ_FILES = ../lib/talloc/pytalloc.o
|
|
|
|
[PYTHON::python_uuid]
|
|
PRIVATE_DEPENDENCIES = LIBNDR
|
|
|
|
python_uuid_OBJ_FILES = $(pyscriptsrcdir)/uuidmodule.o
|
|
|
|
[PYTHON::python__glue]
|
|
LIBRARY_REALNAME = samba/_glue.$(SHLIBEXT)
|
|
PRIVATE_DEPENDENCIES = LIBNDR LIBLDB SAMDB CREDENTIALS pyldb python_dcerpc_misc python_dcerpc_security pyauth pyldb_util pyparam_util
|
|
|
|
python__glue_OBJ_FILES = $(pyscriptsrcdir)/pyglue.o
|
|
|
|
$(python__glue_OBJ_FILES): CFLAGS+=-I$(ldbsrcdir)
|
|
|
|
_PY_FILES = $(shell find $(pyscriptsrcdir)/samba -type f -name "*.py")
|
|
|
|
$(eval $(foreach pyfile, $(_PY_FILES),$(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(pyfile)),$(pyfile))))
|
|
|
|
PYDOCTOR = pydoctor
|
|
PYDOCTOR_OPTIONS = --project-name Samba --project-url http://www.samba.org/ \
|
|
--make-html
|
|
pydoctor:: pythonmods
|
|
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)
|
|
|
|
install:: installpython
|
|
|
|
PYFLAKES = pyflakes
|
|
|
|
pyflakes::
|
|
$(PYFLAKES) $(pyscriptsrcdir)/samba
|
|
|
|
PYLINT = pylint
|
|
|
|
pylint:: pythonmods
|
|
PYTHONPATH=$(pyscriptsrcdir) $(PYLINT) -f parseable samba
|