MANIFEST.in: include Makefile (for the benefit of mjj29's interop test) and examples
[dbus-python-phuang.git] / Makefile
blob7ef908bd2d12fed661a6320a5acfc1a0774c9455
1 #!/usr/bin/make -f
2 # Convenience Makefile for development - distributors and users should use
3 # setup.py as usual.
5 default: build
7 warning:
8 @echo "### If you're not a dbus-python developer, please ignore this"
9 @echo "### Makefile and use setup.py as usual."
11 PYTHON ?= python
12 EPYDOC ?= epydoc
13 CFLAGS ?= -Wall -Wextra -Werror -Wno-missing-field-initializers \
14 -Wdeclaration-after-statement
16 build: warning
17 rm -rf build/lib.*/*.so build/temp.*
18 CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build --debug
20 quick: warning
21 CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build --debug
23 check: warning
24 CFLAGS="$(CFLAGS)" $(PYTHON) setup.py check
26 # This assumes you've only built for one architecture.
27 docs: build
28 cd $(shell echo build/lib.*) && PYTHONPATH=. \
29 $(EPYDOC) -o ../epydoc --html --docformat restructuredtext -v \
30 dbus _dbus_bindings _dbus_glib_bindings
32 cross-test-compile:
33 $(PYTHON) setup.py build --debug
35 cross-test-server:
36 cd $(shell echo build/lib.*) && PYTHONPATH=. \
37 PYTHONUNBUFFERED=1 \
38 $(PYTHON) ../../test/cross-test-server.py
40 cross-test-client:
41 cd $(shell echo build/lib.*) && PYTHONPATH=. \
42 PYTHONUNBUFFERED=1 \
43 $(PYTHON) ../../test/cross-test-client.py
45 .PHONY: default docs warning
46 .PHONY: cross-test-compile cross-test-server cross-test-client