]> arthur.barton.de Git - bup.git/commitdiff
GNUmakefile: use correct dev/python path when installing bup
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 7 May 2021 20:06:34 +0000 (22:06 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sat, 15 May 2021 18:56:36 +0000 (13:56 -0500)
$(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>
GNUmakefile

index f07a3b5a59a15d402cc4dd4fdffed42b0c831757..44be77c62bfec2044f27f63395d8ab9a269d054b 100644 (file)
@@ -132,7 +132,8 @@ install: all
        $(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/