mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
build: optionally build python-cffi bindings
Put the build product (and tests) in a well known location so that we can find them e.g. from the tests.
This commit is contained in:
parent
3aaa8cfe94
commit
46e9615621
2 changed files with 10 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# -*- makefile -*-
|
# -*- makefile -*-
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: notmuch notmuch-shared build-man build-info ruby-bindings
|
all: notmuch notmuch-shared build-man build-info ruby-bindings python-cffi-bindings
|
||||||
ifeq ($(MAKECMDGOALS),)
|
ifeq ($(MAKECMDGOALS),)
|
||||||
ifeq ($(shell cat .first-build-message 2>/dev/null),)
|
ifeq ($(shell cat .first-build-message 2>/dev/null),)
|
||||||
@NOTMUCH_FIRST_BUILD=1 $(MAKE) --no-print-directory all
|
@NOTMUCH_FIRST_BUILD=1 $(MAKE) --no-print-directory all
|
||||||
|
|
|
@ -13,6 +13,13 @@ ifeq ($(HAVE_RUBY_DEV),1)
|
||||||
$(MAKE) -C $(dir)/ruby
|
$(MAKE) -C $(dir)/ruby
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
python-cffi-bindings: lib/$(LINKER_NAME)
|
||||||
|
ifeq ($(HAVE_PYTHON3_CFFI),1)
|
||||||
|
cd $(dir)/python-cffi && \
|
||||||
|
${PYTHON} setup.py build --build-lib build/stage && \
|
||||||
|
mkdir -p build/stage/tests && cp tests/*.py build/stage/tests
|
||||||
|
endif
|
||||||
|
|
||||||
CLEAN += $(patsubst %,$(dir)/ruby/%, \
|
CLEAN += $(patsubst %,$(dir)/ruby/%, \
|
||||||
.RUBYARCHDIR.time \
|
.RUBYARCHDIR.time \
|
||||||
Makefile database.o directory.o filenames.o\
|
Makefile database.o directory.o filenames.o\
|
||||||
|
@ -20,3 +27,5 @@ CLEAN += $(patsubst %,$(dir)/ruby/%, \
|
||||||
status.o tags.o thread.o threads.o)
|
status.o tags.o thread.o threads.o)
|
||||||
|
|
||||||
CLEAN += bindings/ruby/.vendorarchdir.time
|
CLEAN += bindings/ruby/.vendorarchdir.time
|
||||||
|
|
||||||
|
CLEAN += bindings/python-cffi/build
|
||||||
|
|
Loading…
Reference in a new issue