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

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

.PHONY: install
install: all
	CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install \
		--prefix="$(PREFIX)" --root="$(DESTDIR)" --force
	$(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot

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

-include $(DEPS)