X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile.am;h=36b19c039d5815ae39235a95f7006dcad0354ed7;hb=b05409d7923df5205c07e5cce2d2791eb74cf268;hp=622cd5028ba8c6acb0a70acad0a7247666ddad5a;hpb=5b869e978a67802bc56713534987870a279405cb;p=libsigrok.git diff --git a/Makefile.am b/Makefile.am index 622cd502..36b19c03 100644 --- a/Makefile.am +++ b/Makefile.am @@ -561,7 +561,9 @@ if BINDINGS_PYTHON PDIR = bindings/python PDOC = bindings/python/sigrok/core/doc.i -setup_py = cd $(PDIR) && $(PYTHON) "$(abs_srcdir)/$(PDIR)/setup.py" --quiet +setup_vars = VERSION='$(PACKAGE_VERSION)' CC='$(CXX)' CFLAGS='$(AM_CXXFLAGS) $(CXXFLAGS)' LDADD='$(PYSIGROK_LIBS)' +setup_quiet = --quiet +setup_py = $(PYTHON) $(srcdir)/$(PDIR)/setup.py $(setup_vars) $(setup_quiet) $(PDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core @@ -581,9 +583,9 @@ python-install: $(setup_py) install --root "$(DESTDIR)/" --prefix "$(prefix)" --exec-prefix "$(exec_prefix)" python-clean: - -$(AM_V_at)$(setup_py) clean --all 2>/dev/null -$(AM_V_at)rm -f $(PDIR)/timestamp -$(AM_V_at)rm -fr $(PDIR)/doxy + -$(AM_V_at)$(setup_py) clean --all 2>/dev/null python-doc: $(AM_V_at)cd $(srcdir)/$(PDIR) && BUILDDIR="$(abs_builddir)/$(PDIR)/" doxygen Doxyfile 2>/dev/null