aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub/Makefile
blob: a676cdf0e901b044a542f094fdb91558ca647703 (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 *.pyc *.pyo *.o *.a *~