]> sigrok.org Git - libsigrok.git/commitdiff
python: Fix build dependency.
authorBert Vermeulen <redacted>
Tue, 22 Jul 2014 02:31:54 +0000 (04:31 +0200)
committerBert Vermeulen <redacted>
Tue, 22 Jul 2014 02:31:54 +0000 (04:31 +0200)
This also makes it more portable, notably to non-bash shells.

Makefile.am

index f1ac6ec31283e048e8c5dd34c325771e47aa50e6..72f97969b599c16dd7d086998f7522ae332c2f5f 100644 (file)
@@ -436,18 +436,22 @@ PDIR = bindings/python
 
 python-build: $(PDIR)/timestamp
 
-python-cleanclean:
-       $(AM_V_at)cd $(PDIR) && python setup.py --quiet clean --all 2> >(grep -v "can't clean it")
+python-quietclean:
+       $(AM_V_at)python $(PDIR)/setup.py --quiet clean --all 3>&1 1>&2 2>&3 \
+               | grep -v "can.t clean it"; true
 
 $(PDIR)/timestamp: bindings/cxx/libsigrokxx.la $(PDIR)/sigrok/core/classes.i \
-               $(library_include_HEADERS) python-cleanclean
-       $(AM_V_GEN)cd $(PDIR) && python setup.py --quiet build 2> >(grep -v "command line option.*Wstrict-prototypes")
+               $(library_include_HEADERS)
+       $(AM_V_at)$(MAKE) python-quietclean
+       $(AM_V_GEN)cd $(PDIR) && python setup.py --quiet build 3>&1 1>&2 2>&3 \
+               | grep -v "command line option.*Wstrict-prototypes"; true
        $(AM_V_at)touch $(PDIR)/timestamp
 
 python-install:
        cd $(PDIR) && python setup.py --quiet install --prefix $(prefix)
 
-python-clean: python-cleanclean
+python-clean:
+       $(AM_V_at)$(MAKE) python-quietclean
        $(AM_V_at)rm -f $(PDIR)/timestamp
 
 BUILD_EXTRA += python-build