mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Otherwise make can search the path relative to certain standard paths such as /usr/include (e.g., the line '-include $(XEN_ROOT)/.config' in Config.mk suffers from this). Signed-off-by: Keir Fraser <keir@xen.org>
23 lines
508 B
Makefile
23 lines
508 B
Makefile
|
|
XEN_ROOT = $(CURDIR)/../..
|
|
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 \
|
|
$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force
|
|
$(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(BINDIR)/pygrub
|
|
$(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf build tmp *.pyc *.pyo *.o *.a *~ a.out $(DEPS)
|
|
|
|
-include $(DEPS)
|