mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
DEPS_RM is currently the same as DEPS, so no functional change. This patch is the result of two perl runes: git-grep -l 'rm.*DEPS' | xargs perl -i~ -pe 'next unless m/^\t+rm\b/; s/\bDEPS\b/DEPS_RM/;' git-grep -l 'RM.*DEPS' | xargs perl -i~ -pe 'next unless m/^\t+\$\(RM\)/; s/\bDEPS\b/DEPS_RM/;' And editing tools/xenstat/libxenstat/Makefile by hand. I verified that I didn't miss anything with this rune: git-grep '\bDEPS\b' | grep -v include |less Reported-by: Jan Beulich <JBeulich@suse.com> CC: Wei Liu <wei.liu2@citrix.com> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
XEN_ROOT = $(CURDIR)/../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
PY_CFLAGS = $(CFLAGS) $(PY_NOOPT_CFLAGS)
|
|
PY_LDFLAGS = $(LDFLAGS) $(APPEND_LDFLAGS)
|
|
INSTALL_LOG = build/installed_files.txt
|
|
|
|
.PHONY: build
|
|
build:
|
|
CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py build
|
|
|
|
.PHONY: install
|
|
install:
|
|
$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
|
|
|
|
CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) \
|
|
setup.py install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \
|
|
--root="$(DESTDIR)" --force
|
|
|
|
$(INSTALL_PROG) scripts/convert-legacy-stream $(DESTDIR)$(LIBEXEC_BIN)
|
|
$(INSTALL_PROG) scripts/verify-stream-v2 $(DESTDIR)$(LIBEXEC_BIN)
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(LIBEXEC_BIN)/verify-stream-v2
|
|
rm -f $(DESTDIR)$(LIBEXEC_BIN)/convert-legacy-stream
|
|
if [ -e $(INSTALL_LOG) ]; then \
|
|
cat $(INSTALL_LOG) | xargs -i rm -f $(DESTDIR)/{}; \
|
|
fi
|
|
|
|
.PHONY: test
|
|
test:
|
|
export LD_LIBRARY_PATH=$$(readlink -f ../libxc):$$(readlink -f ../xenstore); $(PYTHON) test.py -b -u
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
find . \( -name "*.py[ocd]" -o -name "*~" -o -name "_*.[hc]" \) -delete
|
|
rm -rf build/
|
|
rm -f $(DEPS_RM)
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
-include $(DEPS)
|