]> git.proxmox.com Git - pve-container.git/blobdiff - src/Makefile
auto-generate bash completion config
[pve-container.git] / src / Makefile
index 6bc06fa277b865d1a9fa4ed1dac2968e6011eaa7..d35619480b53fdd7b2c3138cde09b26728bda3e0 100644 (file)
@@ -28,6 +28,9 @@ all:
 pct.1.pod: pct
        perl -I. -T -e "use PVE::CLI::pct; PVE::CLI::pct->generate_pod_manpage();" >$@
 
+pct.bash-completion:
+       perl -I. -T -e "use PVE::CLI::pct; PVE::CLI::pct->generate_bash_completions();" >$@
+
 pct.conf.5.pod: gen-pct-conf-pod.pl PVE/LXC.pm
        perl -I. ./gen-pct-conf-pod.pl >$@
 
@@ -62,7 +65,7 @@ test:
 .PHONY: clean
 clean:         
        make -C test clean
-       rm -rf *.1.pod *.1.gz
+       rm -rf *.1.pod *.1.gz *.bash-completion
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: distclean