summaryrefslogtreecommitdiff
path: root/source4/scripting/python/config.mk
blob: 5d4bc48d8a1660df89c91589707043ee2acfba35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[PYTHON::python_param]
PRIVATE_DEPENDENCIES = LIBSAMBA-CONFIG 
OBJ_FILES = parammodule.o

[PYTHON::python_uuid]
PRIVATE_DEPENDENCIES = LIBNDR 
OBJ_FILES = uuidmodule.o

[PYTHON::python_misc]
PRIVATE_DEPENDENCIES = LIBNDR LIBLDB
SWIG_FILE = misc.i

# Swig extensions
swig: pythonmods

.SUFFIXES: _wrap.c .i

.i_wrap.c:
	$(SWIG) -Wall -I$(srcdir)/scripting/swig -python -keyword $<

realdistclean::
	@echo "Removing SWIG output files"
	@-rm -f bin/python/*
	# FIXME: Remove _wrap.c files

pythonmods: $(PYTHON_DSOS)

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

pydoctor:: pythonmods
	LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))