mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl BINDIR | xargs sed -i 's@BINDIR@bindir@g' Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Cc: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
32 lines
759 B
Makefile
32 lines
759 B
Makefile
|
|
XEN_ROOT = $(CURDIR)/../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
PY_CFLAGS = $(CFLAGS) $(PY_NOOPT_CFLAGS) $(APPEND_LDFLAGS)
|
|
|
|
.PHONY: all
|
|
all: build
|
|
.PHONY: build
|
|
build:
|
|
CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py build
|
|
|
|
.PHONY: install
|
|
install: all
|
|
CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py install \
|
|
$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \
|
|
--install-scripts=$(LIBEXEC_BIN) --force
|
|
set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \
|
|
"`readlink -f $(DESTDIR)/$(bindir)`" != \
|
|
"`readlink -f $(LIBEXEC_BIN)`" ]; then \
|
|
ln -sf $(LIBEXEC_BIN)/pygrub $(DESTDIR)/$(bindir); \
|
|
fi
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf build tmp *.pyc *.pyo *.o *.a *~ a.out $(DEPS)
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
-include $(DEPS)
|