From: Jiří Pinkava Date: Thu, 8 Jan 2015 23:45:48 +0000 (+0100) Subject: Python bindings: respect DESTDIR. X-Git-Tag: libsigrok-0.4.0~689 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6ae536258977b8a38bd7c58ad9a86fec5e4feece;p=libsigrok.git Python bindings: respect DESTDIR. Thanks Aurelien Jacobs for a suggested fix/improvement. --- diff --git a/Makefile.am b/Makefile.am index 13debd1e..b6bec636 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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