aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub/Makefile
blob: 197b89a1a865a21a787d3104d454a18c36142115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
XEN_ROOT = ../..
include $(XEN_ROOT)/tools/Rules.mk

all: build
build:
	CFLAGS="$(CFLAGS)" python setup.py build

ifndef XEN_PYTHON_NATIVE_INSTALL
install: all
	CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr"
else
install: all
	CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)"
endif

clean:
	rm -rf build tmp *.pyc *.pyo *.o *.a *~ a.out