1 pythonbuilddir = $(builddir)/bin/python
4 # Arguments: Module path
5 define python_module_template
7 installpython:: $$(pythonbuilddir)/$(1) ;
8 cp $$< $$(DESTDIR)$$(PYTHONDIR)/$(1)
11 rm -f $$(DESTDIR)$$(PYTHONDIR)/$(1) ;
13 pythonmods:: $$(pythonbuilddir)/$(1) ;
17 define python_py_module_template
19 $$(pythonbuilddir)/$(1): $(2) ;
23 $(call python_module_template,$(1))
28 # Arguments: Module path, object files
29 define python_c_module_template
31 $$(pythonbuilddir)/$(1): $(2) ;
34 @$$(MDLD) $$(LDFLAGS) $$(MDLD_FLAGS) $$(INTERN_LDFLAGS) -o $$@ $$(INSTALL_LINK_FLAGS) $(3)
36 $(call python_module_template,$(1))
45 [ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -I$(srcdir)/scripting/swig -python -keyword $<
48 @echo "Removing SWIG output files"
49 # FIXME: Remove _wrap.c files
54 @echo "Removing python modules"
55 @rm -rf $(pythonbuilddir)
58 LD_LIBRARY_PATH=bin/shared PYTHONPATH=$(pythonbuilddir) pydoctor --project-name=Samba --project-url=http://www.samba.org --make-html --docformat=restructuredtext --add-package $(pythonbuilddir)/samba