ia64/xen-unstable

view tools/pygrub/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 f85eb51dc313
children 18f765da2725
line source
2 XEN_ROOT = ../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 all: build
6 build:
7 CFLAGS="$(CFLAGS)" python setup.py build
9 ifndef XEN_PYTHON_NATIVE_INSTALL
10 install: all
11 CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr"
12 else
13 install: all
14 CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)"
15 endif
17 clean:
18 rm -rf build *.pyc *.pyo *.o *.a *~