From: Mark Wooding Date: Mon, 25 Nov 2019 15:04:07 +0000 (+0000) Subject: pysetup.mk: Handle the `DESTDIR' install variable usefully. X-Git-Url: https://git.distorted.org.uk/~mdw/runlisp/commitdiff_plain/235173edfc704d78de54f6d8d58b9bd5d8910e74 pysetup.mk: Handle the `DESTDIR' install variable usefully. --- diff --git a/pysetup.mk b/pysetup.mk index fed1149..8e6e607 100644 --- a/pysetup.mk +++ b/pysetup.mk @@ -32,7 +32,8 @@ CMD-dist ?= sdist OPTS-dist += --dist-dir . PYTARGETS += install -OPTS-install += --prefix $(prefix) +OPTS-install += --prefix $(prefix) \ + $(and $(DESTDIR),--root $(DESTDIR)) PYTARGETS += check CMD-check ?= test