]> sigrok.org Git - libsigrok.git/blobdiff - Makefile.am
Remove unnecessary level of indirection for source manipulation.
[libsigrok.git] / Makefile.am
index f24f1f5aa367389ad4908af1c4c975b770fe942d..246717796016b97ef2c3eaf94b4ca18aceba22d1 100644 (file)
@@ -361,7 +361,7 @@ TESTS = tests/check_main
 check_PROGRAMS = ${TESTS}
 
 tests_check_main_SOURCES = \
-       libsigrok.h \
+       include/libsigrok/libsigrok.h \
        tests/lib.c \
        tests/lib.h \
        tests/check_main.c \
@@ -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