diff options
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/make/python.mk | 4 | ||||
-rw-r--r-- | source4/build/smb_build/makefile.pm | 4 |
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"); } } |