From caa548de3396f5b3dbb39191777d932236ca1a79 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Fri, 24 Dec 2021 16:25:41 -0500 Subject: Pass DESTDIR to pip in make install Signed-off-by: Matthew Peveler --- Makefile.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 153a8d1..8b1da62 100644 --- a/Makefile.in +++ b/Makefile.in @@ -22,7 +22,7 @@ datadir = @datadir@ docdir = @docdir@ sysconfdir = @sysconfdir@ datarootdir = @datarootdir@ -mandir=@mandir@ +mandir = @mandir@ srcdir = @srcdir@ VPATH = @srcdir@ @@ -38,6 +38,8 @@ doc = $(wildcard README*) $(wildcard BUGS*) $(wildcard INSTALL*) $(wildcard CHAN TARGETS = doc +DESTDIR ?= / + INSTDIRS = $(TARGETS:%=%dir) .PHONY: $(TARGETS) @@ -86,7 +88,7 @@ doc_spell: .PHONY: pip pip: - python3 -m pip install . + python3 -m pip install --root $(DESTDIR) . ## install: install asciidoc to target directory .PHONY: install -- cgit v1.2.1