Python bindings: respect DESTDIR.

Thanks Aurelien Jacobs <aurel@gnuage.org> for a suggested
fix/improvement.
This commit is contained in:
Jiří Pinkava 2015-01-09 00:45:48 +01:00 committed by Uwe Hermann
parent 787ec9dbd9
commit 6ae5362589
1 changed files with 5 additions and 2 deletions

View File

@ -504,8 +504,11 @@ $(PDIR)/timestamp: bindings/cxx/libsigrokxx.la $(PDIR)/sigrok/core/classes.i \
| grep -v "command line option.*Wstrict-prototypes"; true
$(AM_V_at)touch $(PDIR)/timestamp
python-install:
cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet install --prefix $(prefix)
$(DESTDIR)$(prefix):
$(MKDIR_P) $@
python-install: $(DESTDIR)$(prefix)
cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet install --prefix $(prefix) `test "$(DESTDIR)" && echo --root=$(DESTDIR)`
python-clean:
$(AM_V_at)$(MAKE) python-quietclean