_dbus_bindings: debug-impl.h -> debug.c
[dbus-python-phuang.git] / Makefile
blob44d91651eddc76e7e8c96d76b620c538ee57dce4
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 # This assumes you've only built for one architecture.
21 docs: build
22 cd $(shell echo build/lib.*) && PYTHONPATH=. \
23 $(EPYDOC) -o ../epydoc --html --docformat restructuredtext -v \
24 dbus _dbus_bindings _dbus_glib_bindings
26 cross-test-compile:
27 $(PYTHON) setup.py build --debug
29 cross-test-server:
30 cd $(shell echo build/lib.*) && PYTHONPATH=. \
31 PYTHONUNBUFFERED=1 \
32 $(PYTHON) ../../test/cross-test-server.py
34 cross-test-client:
35 cd $(shell echo build/lib.*) && PYTHONPATH=. \
36 PYTHONUNBUFFERED=1 \
37 $(PYTHON) ../../test/cross-test-client.py
39 .PHONY: default docs warning
40 .PHONY: cross-test-compile cross-test-server cross-test-client