mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2024-12-22 13:33:58 +03:00
898f972d53
With this change one can get list of domains on the command line: $ virt-viewer -c qemu:///system <TAB><TAB> dom1 dom2 ... domN The list of domains is fetched using virsh, hence the dependency on libvirt-client recorded in the spec file. I think it's fair to assume that Linux hosts with virt-viewer will have virsh available too. If they don't, nothing breaks and no error message is printed. The completer script is inspired by libvirt. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
71 lines
1.7 KiB
Makefile
71 lines
1.7 KiB
Makefile
NULL =
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
SUBDIRS = bash-completion icons src man po data tests
|
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb
|
|
EXTRA_DIST = \
|
|
$(PACKAGE).spec $(PACKAGE).spec.in \
|
|
mingw-$(PACKAGE).spec.in \
|
|
GNUmakefile \
|
|
maint.mk \
|
|
cfg.mk \
|
|
build-aux/gitlog-to-changelog \
|
|
build-aux/useless-if-before-free \
|
|
build-aux/vc-list-files \
|
|
AUTHORS.in \
|
|
README.md \
|
|
$(NULL)
|
|
|
|
DISTCLEAN_FILES = \
|
|
$(PACKAGE).spec \
|
|
mingw-$(PACKAGE).spec \
|
|
$(NULL)
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
$(srcdir)/AUTHORS \
|
|
$(srcdir)/INSTALL \
|
|
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
|
|
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
|
|
$(NULL)
|
|
|
|
dist-hook: gen-ChangeLog gen-AUTHORS
|
|
|
|
# Generate the ChangeLog file (with all entries since the switch to git)
|
|
# and insert it into the directory we're about to use to create a tarball.
|
|
if OS_WIN32
|
|
.PHONY: gen-ChangeLog gen-AUTHORS msi
|
|
else
|
|
.PHONY: gen-ChangeLog gen-AUTHORS
|
|
endif
|
|
|
|
gen-ChangeLog:
|
|
if test -d .git || test -d ../.git; then \
|
|
$(top_srcdir)/build-aux/gitlog-to-changelog \
|
|
> $(distdir)/cl-t; \
|
|
rm -f $(distdir)/ChangeLog; \
|
|
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
|
|
fi
|
|
|
|
gen-AUTHORS:
|
|
$(AM_V_GEN)if test -d $(srcdir)/.git; then \
|
|
out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \
|
|
perl -p -e "s/#authorslist#// and print '$$out'" \
|
|
< $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
|
|
mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ; \
|
|
fi
|
|
|
|
if OS_WIN32
|
|
.PHONY: msi
|
|
msi:
|
|
make -C $(builddir)/data msi
|
|
endif
|
|
|
|
|
|
# this make sure those files are regenerated when they change
|
|
# (in maintainer-mode)
|
|
all-local: virt-viewer.spec mingw-virt-viewer.spec
|
|
|
|
-include $(top_srcdir)/git.mk
|