ia64/xen-unstable

view tools/python/Makefile @ 7238:971e7c7411b3

Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Thu Oct 06 10:13:11 2005 +0100 (2005-10-06)
parents 06d84bf87159
children cd228621e1fd
line source
1 XEN_ROOT = ../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 .PHONY: all build install clean
6 all: build
7 build:
8 CFLAGS="$(CFLAGS)" python setup.py build
10 ifndef XEN_PYTHON_NATIVE_INSTALL
11 install: all
12 CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr"
13 else
14 install: all
15 CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)"
16 endif
18 clean:
19 rm -rf build *.pyc *.pyo *.o *.a *~