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

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

.PHONY: install
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

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