]> sigrok.org Git - libsigrok.git/commitdiff
python: Silence irrelevant build warnings.
authorBert Vermeulen <redacted>
Sun, 20 Jul 2014 20:37:32 +0000 (22:37 +0200)
committerBert Vermeulen <redacted>
Sun, 20 Jul 2014 20:37:32 +0000 (22:37 +0200)
Makefile.am

index ada3f1fa1b1a01b79cb800f9d7c69c1812c910dd..246717796016b97ef2c3eaf94b4ca18aceba22d1 100644 (file)
@@ -430,17 +430,18 @@ 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")
+
 $(PDIR)/timestamp: bindings/cxx/libsigrokxx.la $(PDIR)/sigrok/core/classes.i \
-               $(library_include_HEADERS)
-       $(AM_V_at)cd $(PDIR) && python setup.py --quiet clean --all
-       $(AM_V_GEN)cd $(PDIR) && python setup.py --quiet build
+               $(library_include_HEADERS) python-cleanclean
+       $(AM_V_GEN)cd $(PDIR) && python setup.py --quiet build 2> >(grep -v "command line option.*Wstrict-prototypes")
        $(AM_V_at)touch $(PDIR)/timestamp
 
 python-install:
        cd $(PDIR) && python setup.py --quiet install --prefix $(prefix)
 
-python-clean:
-       $(AM_V_at)cd $(PDIR) && python setup.py --quiet clean --all
+python-clean: python-cleanclean
        $(AM_V_at)rm -f $(PDIR)/timestamp
 
 BUILD_EXTRA += python-build