summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-15 01:40:32 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-15 01:40:32 +0200
commitd04926914ad0d9ecd7dee3e156198d6baf788598 (patch)
treee626b5c49eee6850cad83f5ad269d6ed05b4c8f7 /source4/build
parent91baa45dfd3cc56e3b97876d1ec4d6a4b48fbaab (diff)
downloadsamba-d04926914ad0d9ecd7dee3e156198d6baf788598.tar.gz
samba-d04926914ad0d9ecd7dee3e156198d6baf788598.tar.bz2
samba-d04926914ad0d9ecd7dee3e156198d6baf788598.zip
Fix the build.
(This used to be commit ecaa5bb83b5cf319718d15aff96152d70fa19f7f)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/make/python.mk4
-rw-r--r--source4/build/smb_build/makefile.pm4
2 files changed, 6 insertions, 2 deletions
diff --git a/source4/build/make/python.mk b/source4/build/make/python.mk
index 57bf0169fe..6c1798212e 100644
--- a/source4/build/make/python.mk
+++ b/source4/build/make/python.mk
@@ -56,3 +56,7 @@ clean::
pydoctor:: pythonmods
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
+
+bin/python/%.py:
+ mkdir -p $(@D)
+ cp $< $@
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 9ce04ca8d4..9518c2eabe 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -326,9 +326,9 @@ sub PythonFiles($$)
foreach (@{$ctx->{PYTHON_FILES}}) {
my $target = "bin/python/".basename($_);
- my $source = "\$(addprefix $ctx->{BASEDIR}/, $target)";
+ my $source = "\$(addprefix $ctx->{BASEDIR}/, $_)";
$self->output("$target: $source\n\n");
- $self->output("PYTHON_PYS += $source\n");
+ $self->output("PYTHON_PYS += $target\n");
}
}