$(bup_python) no longer exists, we should use dev/python.
But since we change working directory, that needs a fully
qualified path.
Reported-by: Quaddle Me <quaddle.me@gmail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
[rlb@defaultvalue.org: use $(CURDIR) instead of $(PWD); add . target dir]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
$(INSTALL) -pm 0755 lib/cmd/bup "$(dest_libdir)/cmd/bup"
$(INSTALL) -pm 0755 $(bup_ext_cmds) "$(dest_libdir)/cmd/"
cd "$(dest_bindir)" && \
- ln -sf "$$($(bup_python) -c 'import os; print(os.path.relpath("$(abspath $(dest_libdir))/cmd/bup"))')"
+ ln -sf "$$($(CURDIR)/dev/python -c 'import os; print(os.path.relpath("$(abspath $(dest_libdir))/cmd/bup"))')" \
+ .
set -e; \
$(INSTALL) -pm 0644 lib/bup/*.py $(dest_libdir)/bup/
$(INSTALL) -pm 0644 lib/bup/cmd/*.py $(dest_libdir)/bup/cmd/