]> git.proxmox.com Git - pve-manager.git/blob - bin/Makefile
update shipped appliance info index
[pve-manager.git] / bin / Makefile
1 include ../defines.mk
2
3 PERL_DOC_INC_DIRS=..
4 -include /usr/share/pve-doc-generator/pve-doc-generator.mk
5
6 SERVICES = pvestatd pveproxy pvedaemon spiceproxy pvescheduler
7 CLITOOLS = \
8 vzdump \
9 pvesubscription \
10 pveceph \
11 pveam \
12 pvesr \
13 pvenode \
14 pvesh \
15 pve7to8 \
16
17
18 SCRIPTS = \
19 $(SERVICES) \
20 $(CLITOOLS) \
21 pvebanner \
22 pveversion \
23 pveupgrade \
24 pveupdate \
25 pveperf \
26 pvereport
27
28 HELPERS = \
29 pve-startall-delay \
30 pve-init-ceph-crash
31
32 SERVICE_MANS = $(addsuffix .8, $(SERVICES))
33
34 CLI_MANS = \
35 $(addsuffix .1, $(CLITOOLS)) \
36 pveversion.1 \
37 pveupgrade.1 \
38 pveperf.1 \
39 pvereport.1 \
40
41 BASH_COMPLETIONS = \
42 $(addsuffix .service-bash-completion, $(SERVICES)) \
43 $(addsuffix .bash-completion, $(CLITOOLS)) \
44
45 ZSH_COMPLETIONS = \
46 $(addsuffix .service-zsh-completion, $(SERVICES)) \
47 $(addsuffix .zsh-completion, $(CLITOOLS)) \
48
49 all: $(SERVICE_MANS) $(CLI_MANS)
50
51 %.1: %.1.pod
52 rm -f $@
53 cat $<|pod2man -n $* -s 1 -r $(VERSION) -c"Proxmox Documentation" - >$@.tmp
54 mv $@.tmp $@
55
56 %.1.pod:
57 podselect $* > $@.tmp
58 mv $@.tmp $@
59
60 pve6to7.1:
61 printf ".TH PVE6TO7 1\n.SH NAME\npve6to7 \- Proxmox VE upgrade checker script for 6.4 to 7.x\n" > $@.tmp
62 printf ".SH NOTE\npve6to7 is for the previous upgrade, from Proxmox VE 6 to 7, but there's a\
63 new Proxmox VE 8 available, see the 'pve7to8' tool.\n" >> $@.tmp
64 printf ".SH SYNOPSIS\npve6to7 [--full]\n" >> $@.tmp
65 mv $@.tmp $@
66
67 pve7to8.1:
68 printf ".TH PVE7TO8 1\n.SH NAME\npve7to8 \- Proxmox VE upgrade checker script for 7.4+ to current 8.x\n" > $@.tmp
69 printf ".SH DESCRIPTION\nThis tool will help you to detect common pitfalls and misconfguration\
70 before, and during the upgrade of a Proxmox VE system\n" >> $@.tmp
71 printf "Any failure must be addressed before the upgrade, and any waring must be addressed, \
72 or at least carefully evaluated, if a false-positive is suspected\n" >> $@.tmp
73 printf ".SH SYNOPSIS\npve7to8 [--full]\n" >> $@.tmp
74 mv $@.tmp $@
75
76 pveversion.1.pod: pveversion
77 pveupgrade.1.pod: pveupgrade
78 pvereport.1.pod: pvereport
79
80 .PHONY: check
81 check: $(addsuffix .service-api-verified, $(SERVICES)) $(addsuffix .api-verified, $(CLITOOLS))
82 rm -f *.service-api-verified *.api-verified
83
84 .PHONY: install
85 install: $(SCRIPTS) $(CLI_MANS) $(SERVICE_MANS) $(BASH_COMPLETIONS) $(ZSH_COMPLETIONS)
86 install -d $(BINDIR)
87 install -m 0755 $(SCRIPTS) $(BINDIR)
88 install -d $(USRSHARE)/helpers
89 install -m 0755 $(HELPERS) $(USRSHARE)/helpers
90 install -d $(MAN1DIR)
91 install -m 0644 $(CLI_MANS) $(MAN1DIR)
92 install -d $(MAN8DIR)
93 install -m 0644 $(SERVICE_MANS) $(MAN8DIR)
94 for i in $(CLITOOLS); do install -m 0644 -D $$i.bash-completion $(BASHCOMPLDIR)/$$i; done
95 for i in $(SERVICES); do install -m 0644 -D $$i.service-bash-completion $(BASHCOMPLDIR)/$$i; done
96 for i in $(CLITOOLS); do install -m 0644 -D $$i.zsh-completion $(ZSHCOMPLDIR)/_$$i; done
97 for i in $(SERVICES); do install -m 0644 -D $$i.service-zsh-completion $(ZSHCOMPLDIR)/_$$i; done
98
99 .PHONY: clean
100 clean:
101 rm -f *.xml.tmp *.1 *.5 *.8 *{synopsis,opts}.adoc docinfo.xml *.tmp
102 rm -f *~ *.tmp $(CLI_MANS) $(SERVICE_MANS) *.1.pod *.8.pod
103 rm -f *.bash-completion *.service-bash-completion *.zsh-completion *.service-zsh-completion
104 rm -f *.api-verified *.service-api-verified