all: watchdog-mux
pve-ha-crm.bash-completion:
- perl -I. -T -e "use PVE::Service::pve_ha_crm; PVE::Service::pve_ha_crm->generate_bash_completions();" >$@.tmp
+ PVE_GENERATING_DOCS=1 perl -I. -T -e "use PVE::Service::pve_ha_crm; PVE::Service::pve_ha_crm->generate_bash_completions();" >$@.tmp
mv $@.tmp $@
pve-ha-lrm.bash-completion:
- perl -I. -T -e "use PVE::Service::pve_ha_lrm; PVE::Service::pve_ha_lrm->generate_bash_completions();" >$@.tmp
+ PVE_GENERATING_DOCS=1 perl -I. -T -e "use PVE::Service::pve_ha_lrm; PVE::Service::pve_ha_lrm->generate_bash_completions();" >$@.tmp
mv $@.tmp $@
ha-manager.bash-completion:
- perl -I. -T -e "use PVE::CLI::ha_manager; PVE::CLI::ha_manager->generate_bash_completions();" >$@.tmp
+ PVE_GENERATING_DOCS=1 perl -I. -T -e "use PVE::CLI::ha_manager; PVE::CLI::ha_manager->generate_bash_completions();" >$@.tmp
mv $@.tmp $@
watchdog-mux: watchdog-mux.c
.PHONY: install
install: watchdog-mux pve-ha-crm pve-ha-lrm ha-manager.1 pve-ha-crm.8 pve-ha-lrm.8 ha-manager.bash-completion pve-ha-lrm.bash-completion pve-ha-crm.bash-completion
- perl -I. -T -e "use PVE::Service::pve_ha_crm; PVE::Service::pve_ha_crm->verify_api();"
- perl -I. -T -e "use PVE::Service::pve_ha_lrm; PVE::Service::pve_ha_lrm->verify_api();"
- perl -I. -T -e "use PVE::CLI::ha_manager; PVE::CLI::ha_manager->verify_api();"
+ PVE_GENERATING_DOCS=1 perl -I. -T -e "use PVE::Service::pve_ha_crm; PVE::Service::pve_ha_crm->verify_api();"
+ PVE_GENERATING_DOCS=1 perl -I. -T -e "use PVE::Service::pve_ha_lrm; PVE::Service::pve_ha_lrm->verify_api();"
+ PVE_GENERATING_DOCS=1 perl -I. -T -e "use PVE::CLI::ha_manager; PVE::CLI::ha_manager->verify_api();"
install -d ${DESTDIR}${SBINDIR}
install -m 0755 pve-ha-crm ${DESTDIR}${SBINDIR}
install -m 0755 pve-ha-lrm ${DESTDIR}${SBINDIR}
use PVE::HA::Tools;
-use PVE::LXC;
-use PVE::LXC::Config;
-use PVE::API2::LXC;
-use PVE::API2::LXC::Status;
+BEGIN {
+ if (!$ENV{PVE_GENERATING_DOCS}) {
+ require PVE::LXC;
+ import PVE::LXC;
+ require PVE::LXC::Config;
+ import PVE::LXC::Config;
+ require PVE::API2::LXC;
+ import PVE::API2::LXC;
+ require PVE::API2::LXC::Status;
+ import PVE::API2::LXC::Status;
+ }
+}
use base qw(PVE::HA::Resources);
use PVE::HA::Tools;
-use PVE::QemuConfig;
-use PVE::QemuServer;
-use PVE::API2::Qemu;
+BEGIN {
+ if (!$ENV{PVE_GENERATING_DOCS}) {
+ require PVE::QemuConfig;
+ import PVE::QemuConfig;
+ require PVE::QemuServer;
+ import PVE::QemuServer;
+ require PVE::API2::Qemu;
+ import PVE::API2::Qemu;
+ }
+}
use base qw(PVE::HA::Resources);