augeas_DATA =
augeastest_DATA =
conf_DATA =
-AUGEAS_DIRS =
if WITH_DTRACE_PROBES
tapset_DATA =
endif WITH_DTRACE_PROBES
$(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/genprotocol.pl $(RPCGEN) -h \
$< $(srcdir)/$(subst $(srcdir)/,,$@)
-
-
-
-
-
-
check-local: check-augeas
-check-augeas: $(AUGEAS_DIRS:%=check-augeas-%)
+check-augeas: $(augeas_DATA) $(augeastest_DATA)
+ $(AM_V_GEN) \
+ if test -x "$(AUGPARSE)"; then \
+ for f in $(augeastest_DATA); do \
+ DIR=$$(dirname "$$f"); \
+ FILE=$$(basename "$$f"); \
+ "$(AUGPARSE)" \
+ -I "$(srcdir)/$$DIR" -I "$(builddir)/$$DIR" \
+ "$$DIR/$$FILE"; \
+ done; \
+ fi
+.PHONY: check-augeas
AUG_GENTEST = $(PERL) $(top_srcdir)/build-aux/augeas-gentest.pl
augeas_DATA += bhyve/libvirtd_bhyve.aug
augeastest_DATA += bhyve/test_libvirtd_bhyve.aug
-AUGEAS_DIRS += bhyve
-
bhyve/test_libvirtd_bhyve.aug: bhyve/test_libvirtd_bhyve.aug.in \
$(srcdir)/bhyve/bhyve.conf $(AUG_GENTEST)
$(AM_V_GEN)$(AUG_GENTEST) $(srcdir)/bhyve/bhyve.conf $< > $@
-check-augeas-bhyve: bhyve/test_libvirtd_bhyve.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/bhyve bhyve/test_libvirtd_bhyve.aug; \
- fi
-
endif WITH_BHYVE
EXTRA_DIST += \
bhyve/libvirtd_bhyve.aug \
bhyve/test_libvirtd_bhyve.aug.in \
$(NULL)
-
-.PHONY: \
- check-augeas-bhyve \
- $(NULL)
augeas_DATA += libxl/libvirtd_libxl.aug
augeastest_DATA += libxl/test_libvirtd_libxl.aug
-AUGEAS_DIRS += libxl
-
libxl/test_libvirtd_libxl.aug: libxl/test_libvirtd_libxl.aug.in \
$(srcdir)/libxl/libxl.conf $(AUG_GENTEST)
$(AM_V_GEN)$(AUG_GENTEST) $(srcdir)/libxl/libxl.conf $< > $@
-check-augeas-libxl: libxl/test_libvirtd_libxl.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/libxl libxl/test_libvirtd_libxl.aug; \
- fi
-
INSTALL_DATA_DIRS += libxl
install-data-libxl:
endif WITH_LIBXL
-.PHONY: \
- check-augeas-libxl \
- $(NULL)
-
EXTRA_DIST += \
libxl/libxl.conf \
libxl/libvirtd_libxl.aug \
locking/qemu-sanlock.conf $(AUG_GENTEST)
$(AM_V_GEN)$(AUG_GENTEST) locking/qemu-sanlock.conf $< > $@
-check-augeas-sanlock: locking/test_libvirt_sanlock.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/locking locking/test_libvirt_sanlock.aug; \
- fi
-else ! WITH_QEMU
-check-augeas-sanlock:
-endif ! WITH_QEMU
-else ! WITH_SANLOCK
-check-augeas-sanlock:
-endif ! WITH_SANLOCK
+endif WITH_QEMU
+endif WITH_SANLOCK
if WITH_QEMU
locking/test_libvirt_lockd.aug: locking/test_libvirt_lockd.aug.in \
locking/virtlockd.conf $(AUG_GENTEST)
$(AM_V_GEN)$(AUG_GENTEST) $(srcdir)/locking/virtlockd.conf $< > $@
-if WITH_QEMU
-check-augeas-lockd: locking/test_libvirt_lockd.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/locking locking/test_libvirt_lockd.aug; \
- fi
-else ! WITH_QEMU
-check-augeas-lockd:
-endif ! WITH_QEMU
-
-check-augeas-virtlockd: locking/test_virtlockd.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/locking locking/test_virtlockd.aug; \
- fi
-
-AUGEAS_DIRS += locking
-
-check-augeas-locking: check-augeas-virtlockd check-augeas-lockd check-augeas-sanlock
-
endif WITH_LIBVIRTD
.PHONY: \
install-data-locking \
uninstall-data-locking \
- check-augeas-locking \
- check-augeas-virtlockd \
- check-augeas-lockd \
- check-augeas-sanlock \
$(NULL)
locking/%-lockd.conf: $(srcdir)/locking/lockd.conf
logging/virtlogd.conf $(AUG_GENTEST)
$(AM_V_GEN)$(AUG_GENTEST) $(srcdir)/logging/virtlogd.conf $< > $@
-AUGEAS_DIRS += logging
-
-check-augeas-logging: logging/test_virtlogd.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/logging logging/test_virtlogd.aug; \
- fi
-
endif WITH_LIBVIRTD
-.PHONY: check-augeas-logging
-
logging/log_daemon_dispatch_stubs.h: $(LOG_PROTOCOL) \
$(srcdir)/rpc/gendispatch.pl Makefile.am
$(AM_V_GEN)perl -w $(srcdir)/rpc/gendispatch.pl --mode=server \
augeas_DATA += lxc/libvirtd_lxc.aug
augeastest_DATA += lxc/test_libvirtd_lxc.aug
-AUGEAS_DIRS += lxc
-
lxc/test_libvirtd_lxc.aug: lxc/test_libvirtd_lxc.aug.in \
$(srcdir)/lxc/lxc.conf $(AUG_GENTEST)
$(AM_V_GEN)$(AUG_GENTEST) $(srcdir)/lxc/lxc.conf $< > $@
-check-augeas-lxc: lxc/test_libvirtd_lxc.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/lxc lxc/test_libvirtd_lxc.aug; \
- fi
-
INSTALL_DATA_DIRS += lxc
install-data-lxc:
$(srcdir)/lxc/lxc_controller_dispatch.h
.PHONY: \
- check-agueas-lxc \
install-data-lxc \
uninstall-data-lxc \
$(NULL)
augeas_DATA += qemu/libvirtd_qemu.aug
augeastest_DATA += qemu/test_libvirtd_qemu.aug
-AUGEAS_DIRS += qemu
-
qemu/test_libvirtd_qemu.aug: qemu/test_libvirtd_qemu.aug.in \
$(srcdir)/qemu/qemu.conf $(AUG_GENTEST)
$(AM_V_GEN)$(AUG_GENTEST) $(srcdir)/qemu/qemu.conf $< > $@
-check-augeas-qemu: qemu/test_libvirtd_qemu.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/qemu qemu/test_libvirtd_qemu.aug; \
- fi
-
INSTALL_DATA_DIRS += qemu
install-data-qemu:
endif WITH_QEMU
.PHONY: \
- check-augeas-qemu \
install-data-qemu \
uninstall-data-qemu \
$(NULL)
uninstall-data-remote:
rmdir "$(DESTDIR)$(localstatedir)/log/libvirt" ||:
-AUGEAS_DIRS += remote
-
remote/test_libvirtd.aug: remote/test_libvirtd.aug.in \
remote/libvirtd.conf $(AUG_GENTEST)
$(AM_V_GEN)$(AUG_GENTEST) $(srcdir)/remote/libvirtd.conf $< > $@
-check-augeas-remote: remote/test_libvirtd.aug
- $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
- '$(AUGPARSE)' -I $(srcdir)/remote remote/test_libvirtd.aug; \
- fi
-
if WITH_SYSCTL
# Use $(prefix)/lib rather than $(libdir), since man sysctl.d insists on
# /usr/lib/sysctl.d/ even when libdir is /usr/lib64
.PHONY: \
install-data-remote \
uninstall-data-remote \
- check-augeas-remote \
$(NULL)
# This is needed for clients too, so can't wrap in