summaryrefslogtreecommitdiff
path: root/source4/build/smb_build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-26 16:02:51 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-26 16:02:51 +0100
commitef15b28d244dcaaa38a07055c3a88f6199173611 (patch)
tree5cbb8a18e04a192993e9b41b5b138ee4a1aaa1f9 /source4/build/smb_build
parentbfc99f15a1e2407cd5aaa938b97ddaa547660cfc (diff)
downloadsamba-ef15b28d244dcaaa38a07055c3a88f6199173611.tar.gz
samba-ef15b28d244dcaaa38a07055c3a88f6199173611.tar.bz2
samba-ef15b28d244dcaaa38a07055c3a88f6199173611.zip
use make macro for python.
(This used to be commit b0408abb08648c0155d8f5da5fb299b1acbc09b6)
Diffstat (limited to 'source4/build/smb_build')
-rw-r--r--source4/build/smb_build/makefile.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 04bef1e160..df34f070c7 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -128,7 +128,7 @@ sub SharedModule($$)
$sane_subsystem =~ s/^lib//;
if ($ctx->{TYPE} eq "PYTHON") {
- $self->output("PYTHON_DSOS += $ctx->{SHAREDDIR}/$ctx->{LIBRARY_REALNAME}\n");
+ $self->output("\$(call python_module_template," . basename($ctx->{NAME}) . ",$ctx->{SHAREDDIR}/$ctx->{LIBRARY_REALNAME})\n");
} else {
$self->output("PLUGINS += $ctx->{SHAREDDIR}/$ctx->{LIBRARY_REALNAME}\n");
$self->output("installplugins:: $ctx->{SHAREDDIR}/$ctx->{LIBRARY_REALNAME}\n");
@@ -295,9 +295,7 @@ sub PythonFiles($$)
my ($self,$ctx) = @_;
foreach (@{$ctx->{PYTHON_FILES}}) {
- my $target = "bin/python/".basename($_);
- $self->output("$target: \$(addprefix $ctx->{BASEDIR}/, $_)\n\n");
- $self->output("PYTHON_PYS += $target\n");
+ $self->output("\$(call python_module_template," . basename($_) . ",\$(addprefix $ctx->{BASEDIR}/, $_))\n");
}
}