1 pythonbuilddir
= bin
/python
4 mkdir
-p
$(DESTDIR
)$(pythondir
)
7 # Arguments: Module path
8 define python_module_template
10 installpython
:: $$(pythonbuilddir
)/$(1) ;
11 mkdir
-p
$$(DESTDIR
)$$(pythondir
)/$$(dir $(1))
12 cp
$$< $$(DESTDIR
)$$(pythondir
)/$(1)
15 rm -f
$$(DESTDIR
)$$(pythondir
)/$(1) ;
17 pythonmods
:: $$(pythonbuilddir
)/$(1) ;
21 define python_py_module_template
23 $$(pythonbuilddir
)/$(1): $(2) ;
27 $(call python_module_template
,$(1))
32 # Arguments: File name, dependencies, link list
33 define python_c_module_template
35 $$(pythonbuilddir
)/$(1): $(2) ;
38 @
$$(MDLD
) $$(LDFLAGS
) $$(MDLD_FLAGS
) $$(INTERN_LDFLAGS
) -o
$$@
$$(INSTALL_LINK_FLAGS
) $(3)
40 $(call python_module_template
,$(1))
46 @echo
"Removing python modules"
47 @
rm -rf
$(pythonbuilddir
)